Power Coupons for WooCommerce icon
eCommerce & WooCommerce

Power Coupons for WooCommerce hooks reference

  • By Brainstorm Force
  • v1.0.8
  • Updated

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.

functions.phpyour child theme
// 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

  • lib/astra-notices/class-bsf-admin-notices.php line 155
    /**
     * Filters whether the current user passes the capability check for notice
     * dismissal.
     */
    apply_filters( 'astra_notices_user_cap_check', $has_cap );
  • lib/nps-survey/classes/nps-survey-script.php line 306
    /**
     * Filter to disable the REST API permission check for NPS Survey endpoints.
     */
    apply_filters( 'nps_survey_api_disable_permission_check', false );
  • lib/nps-survey/classes/nps-survey-script.php line 412
    /**
     * 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 );
  • lib/nps-survey/classes/nps-survey-script.php line 631
    /**
     * Filter to check if NPS Survey is enabled for admin only.
     */
    apply_filters( 'nps_survey_enabled_for_admin_only', true );
  • lib/nps-survey/classes/nps-survey-script.php line 389
    /**
     * 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 );
  • lib/nps-survey/classes/nps-survey-script.php line 339
    /**
     * 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, ) ) );
  • lib/nps-survey/classes/nps-survey-script.php line 78
    /**
     * 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 );
  • includes/class-power-coupons-utilities.php line 594
    /**
     * Filter the available coupons before display.
     */
    apply_filters( 'power_coupons_available_coupons', $coupons, $context );
  • includes/class-power-coupons-config-ability.php line 1567
    /**
     * Filter ability configurations.
     */
    apply_filters( 'power_coupons_config_abilities', $abilities );
  • admin/class-power-coupons-admin-settings.php line 426
    /**
     * Filter admin header menus.
     */
    apply_filters( 'power_coupons_filter_admin_header_menus', $menus );
  • admin/class-power-coupons-admin-settings.php line 818
    /**
     * Filter the sanitized settings immediately before they are stored.
     */
    apply_filters( 'power_coupons_filter_sanitized_settings', $sanitized, $settings );
  • includes/class-power-coupons-utilities.php line 534
    /**
     * Filter whether a coupon was created using Power Coupons.
     */
    apply_filters( 'power_coupons_is_power_coupons_coupon', $is_power_coupon, $coupon );
  • includes/class-power-coupons-utilities.php line 562
    /**
     * Filter whether to reload the page after a coupon is applied.
     */
    apply_filters( 'power_coupons_reload_page_after_coupon_is_applied', false );
  • lib/bsf-analytics/class-bsf-analytics.php line 178 · used in 2 places
    apply_filters( "{$key}_tracking_enabled", $is_enabled );
  • lib/bsf-analytics/class-bsf-analytics.php line 195
    apply_filters( "{$source}_white_label_options", array() );
  • lib/astra-notices/class-bsf-admin-notices.php line 355
    do_action( 'astra_notice_after_markup' );
  • lib/astra-notices/class-bsf-admin-notices.php line 352
    do_action( "astra_notice_after_markup_{$notice['id']}" );
  • lib/astra-notices/class-bsf-admin-notices.php line 336
    do_action( 'astra_notice_before_markup' );
  • lib/astra-notices/class-bsf-admin-notices.php line 339
    do_action( "astra_notice_before_markup_{$notice['id']}" );
  • lib/astra-notices/class-bsf-admin-notices.php line 345
    do_action( "astra_notice_inside_markup_{$notice['id']}" );
  • lib/astra-notices/class-bsf-admin-notices.php line 356
    do_action( 'bsf_admin_notice_after_markup' );
  • lib/astra-notices/class-bsf-admin-notices.php line 353
    do_action( "bsf_admin_notice_after_markup_{$notice['id']}" );
  • lib/astra-notices/class-bsf-admin-notices.php line 337
    do_action( 'bsf_admin_notice_before_markup' );
  • lib/astra-notices/class-bsf-admin-notices.php line 340
    do_action( "bsf_admin_notice_before_markup_{$notice['id']}" );
  • lib/astra-notices/class-bsf-admin-notices.php line 346
    do_action( "bsf_admin_notice_inside_markup_{$notice['id']}" );
  • lib/astra-notices/class-bsf-admin-notices.php line 156
    apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check );
  • lib/bsf-analytics/class-bsf-analytics-stats.php line 57
    apply_filters( 'bsf_core_stats', $this->get_default_stats() );
  • lib/bsf-analytics/class-bsf-analytics.php line 169
    apply_filters( 'bsf_usage_tracking_enabled', true );
  • lib/nps-survey/classes/nps-survey-script.php line 262
    apply_filters( 'nps_survey_api_domain', 'https://metrics.brainstormforce.com/' );
  • lib/nps-survey/classes/nps-survey-script.php line 132
    apply_filters( 'nps_survey_build_url', $default_build_url );
  • lib/nps-survey/classes/nps-survey-script.php line 152
    apply_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' ) : '', ] );
  • admin/class-power-coupons-admin-rules.php line 219
    do_action( 'power_coupons_clear_coupon_cache', $coupon_id );
  • admin/class-power-coupons-admin-settings.php line 371
    apply_filters( 'power_coupons_filter_admin_localize_data', $localize_data );
  • admin/class-power-coupons-admin-settings.php line 152
    apply_filters( 'power_coupons_filter_admin_menus', array( 'menu' => array( 'settings' => array( 'page_title' => __( 'Power Coupons', 'power-coupons' ), 'menu_title' => __( 'Power Coupons', 'power-coupons' ), 'capability' => 'manage_woocommerce', 'menu_slug' => 'power_coupons_settings', 'callback' => array( $this, 'render_settings_page' ), 'icon' => self::get_menu_icon(), 'position' => 56, ), ), 'submenu' => array( 'all_coupons' => array( 'paren... );
  • includes/class-power-coupons-utilities.php line 282
    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... );
  • admin/class-power-coupons-admin-settings.php line 644
    apply_filters( 'power_coupons_filter_general_fields', $fields );
  • admin/class-power-coupons-admin-settings.php line 565
    apply_filters( 'power_coupons_filter_settings_fields', $fields );
  • admin/class-power-coupons-admin-settings.php line 549
    apply_filters( 'power_coupons_filter_settings_tabs', $tabs );
  • lib/bsf-analytics/modules/deactivation-survey/classes/class-deactivation-survey-feedback.php line 279
    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?'... );
  • lib/bsf-analytics/classes/class-bsf-analytics-helper.php line 80
    apply_filters( 'uds_survey_allowed_screens', array( 'plugins' ) );
  • lib/bsf-analytics/modules/deactivation-survey/classes/class-deactivation-survey-feedback.php line 191
    apply_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: