JReviews logo
Guides
Menu
Guides and community examples
Version

jreviews:listing.update_complete_view

Allows addons to return custom HTML or a callable for the listing update completion view. If a value is returned, it replaces the default success message. Useful for addons that need custom post-update workflows or messaging.

Filter
Listings
Since 6.0.0

Start here

Copy the boilerplate below, then add the logic you need. Return the modified first argument. New to hooks? Read the hooks primer first.

Fires after listing is successfully updated, before completion view is rendered

Parameters

Name Type Description
$customCompletionView null Default value is null (shows default completion view)
$listing \JReviews\App\Models\Listing The updated listing
$response \FWD\Clickfwd\Yoyo\YoyoResponse The Yoyo response object for manipulating the response

Boilerplate

Paste this into your hook file, then add your logic and return the modified first argument.

fwd_add_filter('jreviews:listing.update_complete_view', function($customCompletionView, $listing, $response)
{
    // Your code here
    
    return $customCompletionView;
}, 20, 3);
Why the final numbers matter: , 20, N sets the priority and how many arguments your callback accepts. If you use both $filterResult and $listing, keep , 20, 2 so both are passed to your callback.
Development & Support
Hooks are for custom development and are not included with support. Use the examples as a starting point and test changes on a staging site first.

Source Files

  • app/Http/Site/Yoyo/Listing/EditForm.php