ProductBay 1.3.6 has 18 actions and 30 filters, read directly from its source code on Nov 19, 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 ProductBay fires an action
add_action( 'productbay_enqueue_frontend_assets', function() {
// Your code runs here.
}, 10, 1 );
// Change a value ProductBay is about to use
add_filter( 'productbay_query_args', function( $args, $settings, $runtime_args ) {
// Change $args here.
return $args;
}, 10, 3 );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
-
/** * Fires when block editor preview assets are enqueued. */ do_action( 'productbay_enqueue_frontend_assets' ); -
/** * Filters WP_Query arguments before the product query executes. */ apply_filters( 'productbay_query_args', $args, $settings, $runtime_args ); -
/** * Filter the Add to Cart text. */ apply_filters( 'productbay_add_to_cart_text', '', $this->cart_settings ); -
/** * Fires after each product row. */ do_action( 'productbay_after_row', $product, $table ); -
/** * Fires before each product row. */ do_action( 'productbay_before_row', $product, $table ); -
/** * Fires before the table wrapper content. */ do_action( 'productbay_before_table', $table ); -
/** * Resolve the opener button text ("Select Options" / "View Products"). Uses a * dedicated filter separate from the add-to-cart text. */ apply_filters( 'productbay_select_options_text', '', $this->cart_settings ); -
/** * Fires after the admin component is initialized. */ do_action( 'productbay_admin_init', $admin ); -
/** * Filters the data passed to the React admin app via wp_localize_script. */ apply_filters( 'productbay_admin_script_data', $script_data ); -
/** * Fires after a successful bulk add-to-cart operation. */ do_action( 'productbay_after_bulk_add_to_cart', $added_count, $errors ); -
/** * Fires after a table is deleted. */ do_action( 'productbay_after_delete_table', $id ); -
/** * Fires after a table is successfully saved. */ do_action( 'productbay_after_save_table', $post_id, $data ); -
/** * Fires after the table wrapper content. */ do_action( 'productbay_after_table', $table ); -
/** * Filters the AJAX filter response. */ apply_filters( 'productbay_ajax_filter_response', $response, $table ); -
/** * Filters table data before it is persisted. */ apply_filters( 'productbay_before_save_table', $data, $id ); -
/** * Allows add-on plugins to inject their frontend CSS into the block editor's * iframe. Return absolute file system paths to CSS files. */ apply_filters( 'productbay_block_editor_css_paths', $css_paths ); -
/** * Filters cell output for both native and custom column types. */ apply_filters( 'productbay_cell_output', $cell_html, $col, $product ); -
/** * Filters the default plugin settings. */ apply_filters( 'productbay_default_settings', $defaults ); -
/** * Fires after admin assets are enqueued. */ do_action( 'productbay_enqueue_admin_assets' ); -
/** * Filters the product_visibility term IDs excluded from a table's query. */ apply_filters( 'productbay_excluded_visibility_terms', $exclude, $stock_status ); -
/** * Filters the taxonomy filter choices offered for a table. */ apply_filters( 'productbay_filter_options', $options, $source, $settings, $table_id ); -
/** * Filters how long resolved filter choices stay cached, in seconds. Return 0 * to disable caching entirely. */ apply_filters( 'productbay_filter_options_cache_ttl', 12 * HOUR_IN_SECONDS, $table_id ); -
/** * Filters settings before returning to the frontend. */ apply_filters( 'productbay_get_settings', $settings ); -
/** * Fires after all plugin components are loaded and initialized. */ do_action( 'productbay_loaded', $this ); -
/** * Fires after a log entry is written. */ do_action( 'productbay_log_created', $entry ); -
/** * Filters the maximum number of items one bulk add-to-cart request may carry. */ apply_filters( 'productbay_max_bulk_items', 100 ); -
/** * Filters the array of CSS URLs to load in the live preview iframe. */ apply_filters( 'productbay_preview_css_urls', array( $base_css ) ); -
/** * Fires after all core REST routes are registered. */ do_action( 'productbay_register_routes', $this ); -
/** * Action to render additional filters (e.g. from Pro extensions). */ do_action( 'productbay_render_filters', $settings, $source ); -
/** * Filters the parsed shortcode attributes. */ apply_filters( 'productbay_shortcode_atts', $atts ); -
/** * Filters the system status data. */ apply_filters( 'productbay_system_status', $status ); -
/** * Filters the columns array before rendering. */ apply_filters( 'productbay_table_columns', $columns, $table_id ); -
/** * Filters the formatted table data returned by the repository. */ apply_filters( 'productbay_table_data', $table_data, $post ); -
/** * Filters the complete table HTML output. */ apply_filters( 'productbay_table_output', $html, $table ); -
/** * Filters the generated scoped CSS for a table. */ apply_filters( 'productbay_table_styles', $css, $table ); -
/** * Fires at the end of the toolbar area. */ do_action( 'productbay_toolbar_end', $table ); -
/** * Fires at the start of the toolbar area. */ do_action( 'productbay_toolbar_start', $table ); -
/** * Return false to hide the banner, for example on sites that already hold a * Pro licence. */ apply_filters( 'wpab_banner_show', true, $slugs ); -
/** * Let a plugin opt in admin screens whose id does not contain its brand key. */ apply_filters( 'wpab_banner_show_on_screen', false, $screen, $slugs ); -
apply_filters( "productbay_{$hook_suffix}", '', $this->cart_settings ); -
apply_filters( 'productbay_admin_capability', self::CAPABILITY ); -
apply_filters( 'productbay_log_retention_days', $retention_days ); -
do_action( 'productbay_settings_updated', $settings ); -
apply_filters( 'woocommerce_add_to_cart_fragments', array() ); -
apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $attributes ); -
apply_filters( 'wpab_banner_show_on_dashboard', false ); -
apply_filters( 'wpab_banner_wc_tabs', array_combine( $slugs, $slugs ), $slugs );
Generated from ProductBay'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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: