Perfect Brands for WooCommerce icon
eCommerce & WooCommerce

Perfect Brands for WooCommerce hooks reference

Perfect Brands for WooCommerce 3.6.16 has 11 actions and 43 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 Perfect Brands for WooCommerce fires an action
add_action( 'jetpack_activate_module', function( $module, $success ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Perfect Brands for WooCommerce is about to use
add_filter( 'jetpack_active_modules', function( $active ) {
	// Change $active here.
	return $active;
}, 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

  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 574
    /**
     * Fires when a specific module is activated.
     */
    do_action( 'jetpack_activate_module', $module, $success );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 583
    /**
     * Fires when a module is activated. The dynamic part of the filter, $module,
     * is the module slug.
     */
    do_action( "jetpack_activate_module_{$module}", $module );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 231
    /**
     * Allow filtering of the active modules.
     */
    apply_filters( 'jetpack_active_modules', $active );
  • jetpack_vendor/automattic/jetpack-assets/src/class-script-data.php line 165
    /**
     * Filter the admin script data.
     */
    apply_filters( 'jetpack_admin_js_script_data', $data );
  • jetpack_vendor/automattic/jetpack-constants/src/class-constants.php line 88
    /**
     * Filters the value of the constant.
     */
    apply_filters( 'jetpack_constant_default_value', null, $name );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 595
    /**
     * Fired after a module has been deactivated.
     */
    do_action( 'jetpack_deactivate_module', $module, $success );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 604
    /**
     * Fires when a module is deactivated. The dynamic part of the filter, $module,
     * is the module slug.
     */
    do_action( "jetpack_deactivate_module_{$module}", $module );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 319
    /**
     * Filters the array of modules available to be activated.
     */
    apply_filters( 'jetpack_get_available_modules', $modules, $min_version, $max_version, $requires_connection, $requires_user_connection );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 274
    /**
     * Stand alone plugins need to use this filter to register the modules they
     * interact with. This will allow them to activate and deactivate these modules
     * even when Jetpack is not present. Note: Standalone plugins can only interact
     * with modules that also exist in the Jetpack plugin, otherwise they'll lose
     * the ability to control it if Jetpack is activated.
     */
    apply_filters( 'jetpack_get_available_standalone_modules', array(), $requires_connection, $requires_user_connection );
  • jetpack_vendor/automattic/jetpack-assets/src/class-assets.php line 193
    /**
     * Filters the URL for a file passed through the get_file_url_for_environment
     * function.
     */
    apply_filters( 'jetpack_get_file_for_environment', $url, $min_path, $non_min_path );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 140
    /**
     * Filter the returned data about a module.
     */
    apply_filters( 'jetpack_get_module', $mod, $module, $file );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 533
    /**
     * Filters the path of a modules.
     */
    apply_filters( 'jetpack_get_module_path', JETPACK__PLUGIN_DIR . "modules/$slug.php", $slug );
  • jetpack_vendor/automattic/jetpack-assets/src/class-assets.php line 523
    /**
     * Filters the i18n state data for use by Webpack bundles built with
     * `@automattic/i18n-loader-webpack-plugin`.
     */
    apply_filters( 'jetpack_i18n_state', $data );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 428
    /**
     * Filters the is_coming_soon check.
     */
    apply_filters( 'jetpack_is_coming_soon', $is_coming_soon );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 356
    /**
     * Filters is_development_site check.
     */
    apply_filters( 'jetpack_is_development_site', $is_dev_site );
  • jetpack_vendor/automattic/jetpack-status/src/class-request.php line 69
    /**
     * Filter whether the current request is for accessing the frontend.
     */
    apply_filters( 'jetpack_is_frontend', $is_frontend, $send_vary_headers );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 327
    /**
     * Filters in_safe_mode check.
     */
    apply_filters( 'jetpack_is_in_safe_mode', $in_safe_mode );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 204
    /**
     * Filters is_local_site check.
     */
    apply_filters( 'jetpack_is_local_site', $is_local );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 399
    /**
     * Filters the is_private_site check.
     */
    apply_filters( 'jetpack_is_private_site', $is_private_site );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 298
    /**
     * Filters is_staging_site check.
     */
    apply_filters( 'jetpack_is_staging_site', $is_staging );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 265
    /**
     * Filters the flags of known staging sites.
     */
    apply_filters( 'jetpack_known_staging', $known_staging );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 126
    /**
     * Filters the feature array on a module.
     */
    apply_filters( 'jetpack_module_feature', $mod['feature'], $module, $mod );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 54
    /**
     * Filters Jetpack's offline mode.
     */
    apply_filters( 'jetpack_offline_mode', $offline_mode );
  • jetpack_vendor/automattic/jetpack-assets/src/class-script-data.php line 218
    /**
     * Filters the site icon using Photon.
     */
    apply_filters( 'jetpack_photon_url', get_site_icon_url(), array( 'w' => 64 ) );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 393
    /**
     * Fires before a module is activated.
     */
    do_action( 'jetpack_pre_activate_module', $module, $exit, $redirect );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 508
    /**
     * Fires when a module is deactivated.
     */
    do_action( 'jetpack_pre_deactivate_module', $module );
  • jetpack_vendor/automattic/jetpack-assets/src/class-script-data.php line 186
    /**
     * Filter the public script data.
     */
    apply_filters( 'jetpack_public_js_script_data', $data );
  • lib/class-rest-api.php line 175
    /**
     * Filter a term item returned from the API.
     */
    apply_filters( "woocommerce_rest_prepare_{$this->taxonomy}", $response, $item, $request );
  • jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php line 156
    apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs );
  • jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php line 154
    apply_filters( 'install_plugins_tabs', $tabs );
  • perfect-woocommerce-brands.php line 56
    do_action( 'pwb_activation' );
  • lib/admin/class-admin-tab.php line 509
    apply_filters( 'pwb_admin_settings_fields', array() );
  • lib/admin/class-admin-tab.php line 459
    apply_filters( 'pwb_admin_settings_tabs', array() );
  • lib/class-woocommerce.php line 670
    do_action( 'pwb_after_single_product_brands', $brands );
  • lib/class-woocommerce.php line 633
    do_action( 'pwb_before_single_product_brands', $brands );
  • perfect-woocommerce-brands.php line 67
    do_action( 'pwb_deactivation' );
  • templates/widgets/dropdown.php line 14
    apply_filters( 'pwb_dropdown_placeholder', esc_html__( 'Brands', 'perfect-woocommerce-brands' ) );
  • lib/class-plugin.php line 48
    do_action( 'pwb_init' );
  • lib/class-product.php line 51
    apply_filters( 'pwb_product_tab_brand_logo_size', $image_size );
  • lib/class-woocommerce.php line 811
    apply_filters( 'pwb_taxonomy_rewrite', $new_slug );
  • lib/class-woocommerce.php line 813
    apply_filters( 'pwb_taxonomy_with_front', true );
  • lib/widgets/class-filter-by-brand.php line 157
    apply_filters( 'pwb_widget_brand_filter', $result_brands_ordered );
  • lib/class-woocommerce.php line 926
    apply_filters( 'the_content', $queried_object->description );
  • lib/admin/class-admin-tab.php line 73
    apply_filters( 'wc_pwb_admin_tab_archives_settings', array( 'section_title' => array( 'name' => __( 'Shop & Categories', 'perfect-woocommerce-brands' ), 'type' => 'title', 'desc' => '', 'id' => 'wc_pwb_admin_tab_section_title', ), array( 'name' => __( 'Show brands in loop', 'perfect-woocommerce-brands' ), 'type' => 'select', 'class' => 'pwb-admin-tab-field', 'desc' => __( 'Show brand logo (or name) in product loop', 'perfect-woocommerce-brands' )... );
  • lib/admin/class-admin-tab.php line 132
    apply_filters( 'wc_pwb_admin_tab_brand_pages_settings', array( 'section_title' => array( 'name' => __( 'Archives', 'perfect-woocommerce-brands' ), 'type' => 'title', 'desc' => '', 'id' => 'wc_pwb_admin_tab_section_title', ), array( 'name' => __( 'Show brand title', 'perfect-woocommerce-brands' ), 'type' => 'select', 'class' => 'pwb-admin-tab-field pwb-premium-field', 'default' => 'yes', 'desc' => __( 'Show brand title (if is set) on brand archive pa... );
  • lib/admin/class-admin-tab.php line 385
    apply_filters( 'wc_pwb_admin_tab_product_settings', array( 'section_title' => array( 'name' => __( 'General', 'perfect-woocommerce-brands' ), 'type' => 'title', 'desc' => '', 'id' => 'wc_pwb_admin_tab_section_title', ), array( 'name' => __( 'Slug', 'perfect-woocommerce-brands' ), 'type' => 'text', 'class' => 'pwb-admin-tab-field', 'desc' => __( 'Brands taxonomy slug', 'perfect-woocommerce-brands' ), 'desc_tip' => sprintf( __( 'Your brands URLs w... );
  • lib/admin/class-admin-tab.php line 251
    apply_filters( 'wc_pwb_admin_tab_settings', array( 'section_title' => array( 'name' => __( 'Products', 'perfect-woocommerce-brands' ), 'type' => 'title', 'desc' => '', 'id' => 'wc_pwb_admin_tab_section_title', ), array( 'name' => __( 'Products tab', 'perfect-woocommerce-brands' ), 'type' => 'checkbox', 'default' => 'yes', 'desc' => __( 'Show brand tab in single product page', 'perfect-woocommerce-brands' ), 'id' => 'wc_pwb_admin_tab_bran... );
  • lib/admin/class-admin-tab.php line 333
    apply_filters( 'wc_pwb_admin_tab_tools_settings', array( 'section_title' => array( 'name' => __( 'Tools', 'perfect-woocommerce-brands' ), 'type' => 'title', 'desc' => '', 'id' => 'wc_pwb_admin_tab_section_tools_title', ), array( 'name' => __( 'Import brands', 'perfect-woocommerce-brands' ), 'type' => 'select', 'class' => 'pwb-admin-tab-field', 'desc' => sprintf( __( 'Import brands from other brand plugin. <a href="%s" target="_blank">Click her... );
  • lib/widgets/class-filter-by-brand.php line 90
    apply_filters( 'widget_title', $title );
  • lib/class-product.php line 46
    apply_filters( 'woocommerce_product_brand_heading', esc_html__( 'Brand', 'perfect-woocommerce-brands' ) );

Generated from Perfect Brands for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: