Browse the various action and filter hooks available in the Sitewide Sales plugin.


Sitewide Sale Custom Post Type Hooks

apply_filters( ‘swsales_default_post_meta’, $default_post_meta, $this->id );

apply_filters( ‘swsales_sale_types’, array( ‘short_name’ => ‘Nice Name’ ) );

do_action( ‘swsales_after_choose_sale_type’, $cur_sale );

do_action( ‘swsales_after_choose_landing_page’, $cur_sale );

do_action( ‘swsales_after_banners_settings’, $cur_sale );

do_action( ‘swsales_save_metaboxes’, $post_id, $post );


Reporting-related Hooks

apply_filters( ‘swsales_get_checkout_conversions’, ‘N/A’, $this );

apply_filters( ‘swsales_get_revenue’, ‘N/A’, $this );

apply_filters( ‘swsales_checkout_conversions_title’, $title, $this );

do_action( ‘swsales_additional_reports’, $this );


Template-related Hooks

apply_filters( ‘swsale_templates’, $templates );

apply_filters( ‘swsales_landing_page_templates’, $templates );

apply_filters( ‘swsales_banner_templates’, $templates );


Banner-related Hooks

apply_filters( ‘swsales_registered_banners’, $registered_banners );

apply_filters( ‘swsales_show_banner’, true, $active_sitewide_sale );

apply_filters( ‘swsales_banner_text’, $active_sitewide_sale->get_banner_text(), $location, $active_sidewide_sale );

apply_filters( ‘swsales_banner_content_{$banner_template}, $content, $banner_location );

apply_filters( ‘swsales_banner_content’, $content, $banner_template, $banner_location );

do_action( ‘swsales_before_banner_button’, $active_sitewide_sale );


Landing Page-related Hooks

apply_filters( ‘swsales_landing_page_content_{$landing_template}, $r );

apply_filters( ‘swsales_landing_page_content’, $r, $landing_template );


Paid Memberships Pro Module-related Hooks

apply_filters( ‘pmpro_pages_shortcode_checkout’, $temp_content );

apply_filters( ‘pmpro_pages_shortcode_levels’, $temp_content );