JReviews logo Docs
Menu
Version

jreviews:listing_inquiry_form.bottom

Fires at the bottom of the listing inquiry modal form. Use for adding custom fields or content. Output is captured via output buffering.

Action
Inquiries
Since 6.0.0

Start here

Copy the boilerplate below, then add the logic you need. Actions receive the values listed below and do not return a value. New to hooks? Read the hooks primer first.

Fires when rendering the listing inquiry form modal, before the submit button

Parameters

Name Type Description
$listing \JReviews\App\Models\Listing The listing for which the inquiry is being sent
$creating bool Always true for inquiry forms (new inquiry)

Boilerplate

Paste this into your hook file, then add your logic or echo output.

fwd_add_action('jreviews:listing_inquiry_form.bottom', function($listing, $creating)
{
    // Execute action or echo output
}, 20, 2);
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/View/Components/Listing/SendInquiry.php