Power Coupons for WooCommerce 1.0.8 has 11 actions and 31 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Power Coupons for WooCommerce fires an action
add_action( 'astra_notice_after_markup', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Power Coupons for WooCommerce is about to use
add_filter( 'astra_notices_user_cap_check', function( $has_cap ) {
// Change $has_cap here.
return $has_cap;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
astra_notices_user_cap_check
filter/** * Filters whether the current user passes the capability check for notice * dismissal. */ apply_filters( 'astra_notices_user_cap_check', $has_cap ); -
/** * Filter to disable the REST API permission check for NPS Survey endpoints. */ apply_filters( 'nps_survey_api_disable_permission_check', false ); -
nps_survey_api_endpoint
filter/** * Filter the API endpoint. */ apply_filters( 'nps_survey_api_endpoint', self::get_api_domain() . 'wp-json/bsf-metrics-server/v1/nps-survey/', $post_data, $nps_id ); -
/** * Filter to check if NPS Survey is enabled for admin only. */ apply_filters( 'nps_survey_enabled_for_admin_only', true ); -
nps_survey_post_data
filter/** * Filter the post data. This can be used to modify the post data before * sending it to the API. */ apply_filters( 'nps_survey_post_data', array( 'rating' => $rating, 'comment' => $comment, 'email' => $current_user->user_email, 'first_name' => ! empty( $current_user->first_name ) ? $current_user->first_name : $current_user->display_name, 'last_name' => ! empty( $current_user->last_name ) ? $current_user->last_name : '', 'source' => $plugin_slug, 'plugin_slug' => $plugin_slug, ), $nps_id ); -
/** * Filter to determine if the NPS survey status should be updated. */ apply_filters( 'nps_survey_should_skip_status_update', false, array_merge( $data, array( 'nps_id' => $nps_id, 'action_type' => $type, ) ) ); -
nps_survey_show_notice
filter/** * Filter to check if the NPS survey should be shown. */ apply_filters( 'nps_survey_show_notice', self::is_show_nps_survey_form( $plugin_slug, $display_after ), $plugin_slug ); -
/** * Filter the available coupons before display. */ apply_filters( 'power_coupons_available_coupons', $coupons, $context ); -
/** * Filter ability configurations. */ apply_filters( 'power_coupons_config_abilities', $abilities ); -
/** * Filter the sanitized settings immediately before they are stored. */ apply_filters( 'power_coupons_filter_sanitized_settings', $sanitized, $settings ); -
/** * Filter whether a coupon was created using Power Coupons. */ apply_filters( 'power_coupons_is_power_coupons_coupon', $is_power_coupon, $coupon ); -
/** * Filter whether to reload the page after a coupon is applied. */ apply_filters( 'power_coupons_reload_page_after_coupon_is_applied', false ); -
{$key}_tracking_enabled
filterapply_filters( "{$key}_tracking_enabled", $is_enabled ); -
apply_filters( "{$source}_white_label_options", array() ); -
astra_notice_after_markup
actiondo_action( 'astra_notice_after_markup' ); -
do_action( "astra_notice_after_markup_{$notice['id']}" ); -
astra_notice_before_markup
actiondo_action( 'astra_notice_before_markup' ); -
do_action( "astra_notice_before_markup_{$notice['id']}" ); -
do_action( "astra_notice_inside_markup_{$notice['id']}" ); -
do_action( 'bsf_admin_notice_after_markup' ); -
do_action( "bsf_admin_notice_after_markup_{$notice['id']}" ); -
do_action( 'bsf_admin_notice_before_markup' ); -
do_action( "bsf_admin_notice_before_markup_{$notice['id']}" ); -
do_action( "bsf_admin_notice_inside_markup_{$notice['id']}" ); -
apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ); -
bsf_core_stats
filterapply_filters( 'bsf_core_stats', $this->get_default_stats() ); -
bsf_usage_tracking_enabled
filterapply_filters( 'bsf_usage_tracking_enabled', true ); -
nps_survey_api_domain
filterapply_filters( 'nps_survey_api_domain', 'https://metrics.brainstormforce.com/' ); -
nps_survey_build_url
filterapply_filters( 'nps_survey_build_url', $default_build_url ); -
nps_survey_vars
filterapply_filters( 'nps_survey_vars', [ 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ), '_ajax_nonce' => wp_create_nonce( 'nps-survey' ), 'rest_api_nonce' => current_user_can( 'manage_options' ) ? wp_create_nonce( 'wp_rest' ) : '', ] ); -
do_action( 'power_coupons_clear_coupon_cache', $coupon_id ); -
apply_filters( 'power_coupons_filter_admin_localize_data', $localize_data ); -
apply_filters( 'power_coupons_filter_coupon_card_templates_array', [ 'style-1' => [ 'label' => __( 'Ticket', 'power-coupons' ), 'path' => POWER_COUPONS_DIR . 'views/templates/card-style-1.php', 'tags' => [ '{power_coupon.code}' => 'EUSHDKQO', '{power_coupon.discount}' => '$10', '{power_coupon.description}' => 'Cart Discount', '{power_coupon.status}' => 'Valid Till: 01 Feb 2022', ], ], 'style-2' => [ 'label' => __( 'Card', 'power-coupons' ), 'path' => POWER_COU... ); -
apply_filters( 'power_coupons_filter_general_fields', $fields ); -
apply_filters( 'power_coupons_filter_settings_fields', $fields ); -
apply_filters( 'power_coupons_filter_settings_tabs', $tabs ); -
apply_filters( 'power_coupons_plugin_action_links', [ 'power_coupons_settings' => '<a href="' . admin_url( 'admin.php?page=power_coupons_settings' ) . '">' . __( 'Settings', 'power-coupons' ) . '</a>', ] ); -
apply_filters( 'uds_default_deactivation_reasons', array( 'temporary_deactivation' => array( 'label' => esc_html__( 'This is a temporary deactivation for testing.' ), 'placeholder' => esc_html__( 'How can we assist you?' ), 'show_cta' => 'false', 'accept_feedback' => 'false', ), 'plugin_not_working' => array( 'label' => esc_html__( 'The plugin isn\'t working properly.' ), 'placeholder' => esc_html__( 'Please tell us more about what went wrong?'... ); -
uds_survey_allowed_screens
filterapply_filters( 'uds_survey_allowed_screens', array( 'plugins' ) ); -
uds_survey_vars
filterapply_filters( 'uds_survey_vars', array( 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ), '_ajax_nonce' => wp_create_nonce( 'uds_plugin_deactivate_feedback' ), '_current_theme' => function_exists( 'wp_get_theme' ) ? wp_get_theme()->get_template() : '', '_plugin_slug' => array(), ) );
Generated from Power Coupons for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: