ActionsΒΆ

Plugin defines many WordPress actions to make it easily extendable:

Action tag Occurance Arguments
inventor_booking_created In booking request form booking id [int], request data [array]
inventor_listing_content In listing row, box, masonry post id [int], display [string]
inventor_payment_form_before In payment form payment type [string], object id [int], payment gateway [string]
inventor_payment_form_fields In payment form payment type [string], object id [int], payment gateway [string]
inventor_payment_form_after In payment form payment type [string], object id [int], payment gateway [string]
inventor_payment_processed After each payment success [bool], gateway [string], payment type [string], payment id [string], object id [int], price [double], currency code [string], user id [int], billing details [array]
inventor_register_form_fields_before In register form  
inventor_register_form_fields_after In register form  
inventor_inquire_message_sent When user sent inquire message success [bool], post id [int], name [string], email [string], subject [string], date [date], message [string], receive_author [bool], receive_admin [bool], receive_listing_email [bool]
inventor_submission_list_row In user listing row post id [int]
inventor_submission_listing_created After listing creation post id [int], post type [string]
inventor_submission_listing_updated After listing update post id [int], post type [string]
inventor_user_package_was_set When user changes his package user id [int], package id [int]
inventor_listing_details_before In listing-details widget template post id [int]
inventor_listing_detail In listing-details widget template post id [int]
inventor_listing_details_after In listing-details widget template post id [int]
inventor_google_map_infobox_image In Google Map post id [int]
inventor_after_filter_result_numbers Below filter if something was found
inventor_after_filter_form After filter form widget args [array]
inventor_before_filter_form Before filter form widget args [array]
inventor_before_faq_archive In archive-faq template global loop
inventor_after_faq_archive In archive-faq template global loop
inventor_before_pricing_archive In archive-pricing_table template global loop
inventor_after_pricing_archive In archive-pricing_table template global loop
inventor_before_listing_archive In archive-listing template global loop
inventor_after_listing_archive In archive-listing template global loop
inventor_before_listing_detail In content-listing template post id [int]
inventor_after_listing_detail In content-listing template post id [int]
inventor_before_listing_detail_gallery In content-listing template global loop
inventor_after_listing_detail_gallery In content-listing template global loop
inventor_before_listing_detail_description In content-listing template global loop
inventor_after_listing_detail_description In content-listing template global loop
inventor_before_listing_detail_attributes In content-listing template global loop
inventor_after_listing_detail_attributes In content-listing template global loop
inventor_before_listing_detail_food_menu In content-listing template global loop
inventor_after_listing_detail_food_menu In content-listing template global loop
inventor_before_listing_detail_opening_hours In content-listing template global loop
inventor_after_listing_detail_opening_hours In content-listing template global loop
inventor_before_listing_detail_google_map In content-listing template global loop
inventor_after_listing_detail_google_map In content-listing template global loop
inventor_before_listing_detail_video In content-listing template global loop
inventor_after_listing_detail_video In content-listing template global loop
inventor_before_listing_detail_faq In content-listing template global loop
inventor_after_listing_detail_faq In content-listing template global loop
inventor_before_listing_detail_contact In content-listing template global loop
inventor_after_listing_detail_contact In content-listing template global loop
inventor_before_listing_detail_comments In content-listing template global loop
inventor_after_listing_detail_comments In content-listing template global loop
inventor_before_listing_detail_report In content-listing template global loop
inventor_after_listing_detail_report In content-listing template global loop

Each action can be called in your code using standard WordPress way, using do_action() function:

do_action( $action_tag, $arg1, $arg2 ... );

To hook on action, use add_action() WP function:

add_action( $action_tag, $callback, $priority = 10, $accepted_args = 1 );