ActionsΒΆ

Plugin defines many WordPress actions to make it easily extendable:

Action tag Occurance Arguments
horizon_listing_content In listing row, box, masonry post_id [int], display [string]
horizon_payment_form_before In payment form payment type [string], object id [int], payment gateway [string]
horizon_payment_form_fields In payment form payment type [string], object id [int], payment gateway [string]
horizon_payment_form_after In payment form payment type [string], object id [int], payment gateway [string]
horizon_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]
horizon_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]
horizon_submission_list_row In user listing row post id [int]
horizon_submission_listing_created After listing creation post id [int], post type [string]
horizon_submission_listing_updated After listing update post id [int], post type [string]
horizon_user_package_was_set When user changes his package user id [int], package id [int]
horizon_listing_details_before In listing-details widget template post id [int]
horizon_listing_detail In listing-details widget template post id [int]
horizon_listing_details_after In listing-details widget template post id [int]
horizon_google_map_infobox_image In Google Map post id [int]
horizon_after_filter_result_numbers Below filter if something was found
horizon_after_filter_form After filter form widget args [array]
horizon_before_filter_form Before filter form widget args [array]
horizon_before_faq_archive In archive-faq template global loop
horizon_after_faq_archive In archive-faq template global loop
horizon_before_pricing_archive In archive-pricing_table template global loop
horizon_after_pricing_archive In archive-pricing_table template global loop
horizon_before_listing_archive In archive-listing template global loop
horizon_after_listing_archive In archive-listing template global loop
horizon_before_listing_detail_gallery In content-listing template global loop
horizon_after_listing_detail_gallery In content-listing template global loop
horizon_before_listing_detail_description In content-listing template global loop
horizon_after_listing_detail_description In content-listing template global loop
horizon_before_listing_detail_attributes In content-listing template global loop
horizon_after_listing_detail_attributes In content-listing template global loop
horizon_before_listing_detail_food_menu In content-listing template global loop
horizon_after_listing_detail_food_menu In content-listing template global loop
horizon_before_listing_detail_opening_hours In content-listing template global loop
horizon_after_listing_detail_opening_hours In content-listing template global loop
horizon_before_listing_detail_google_map In content-listing template global loop
horizon_after_listing_detail_google_map In content-listing template global loop
horizon_before_listing_detail_video In content-listing template global loop
horizon_after_listing_detail_video In content-listing template global loop
horizon_before_listing_detail_faq In content-listing template global loop
horizon_after_listing_detail_faq In content-listing template global loop
horizon_before_listing_detail_contact In content-listing template global loop
horizon_after_listing_detail_contact In content-listing template global loop
horizon_before_listing_detail_comments In content-listing template global loop
horizon_after_listing_detail_comments In content-listing template global loop
horizon_before_listing_detail_report In content-listing template global loop
horizon_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 );