Product Slider, Product Grid, Product Masonry 1.13.63 has 24 actions and 24 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 Product Slider, Product Grid, Product Masonry fires an action
add_action( 'wcps_slider_no_item', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Product Slider, Product Grid, Product Masonry is about to use
add_filter( 'wcps_items_wrapper_class', function( $value, $args ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
do_action( "wcps_layout_element_{$elementIndex}", $args ); -
wcps_items_wrapper_class
filterapply_filters( 'wcps_items_wrapper_class', 'wcps-items owl-carousel owl-theme', $args ); -
wcps_slider_item_class
filterapply_filters( 'wcps_slider_item_class', 'item ', $args ); -
wcps_slider_no_item
actiondo_action( 'wcps_slider_no_item' ); -
wcps_allowed_taxonomies
filterapply_filters( 'wcps_allowed_taxonomies', array('download_category', 'download_tag') ); -
wcps_slider_after_items
actiondo_action( 'wcps_slider_after_items', $wcps_query, $args ); -
wcps_slider_before_items
actiondo_action( 'wcps_slider_before_items', $wcps_query, $args ); -
wcps_slider_query_args
filterapply_filters( 'wcps_slider_query_args', $query_args, $args ); -
do_action( "wcps_layout_element_css_{$elementIndex}", $args ); -
do_action( "wcps_layout_elements_option_{$elementIndex}" ); -
wcps_query_orderby_args
filterapply_filters( 'wcps_query_orderby_args', array( 'ID' => __('ID', 'woocommerce-products-slider'), 'date' => __('Date', 'woocommerce-products-slider'), 'post_date' => __('Post date', 'woocommerce-products-slider'), 'modified' => __('Post modified date', 'woocommerce-products-slider'), 'name' => __('Name', 'woocommerce-products-slider'), 'rand' => __('Random', 'woocommerce-products-slider'), 'comment_count' => __('Comment count', 'woocom... ); -
plugin_locale
filterapply_filters( 'plugin_locale', get_locale(), 'woocommerce-products-slider' ); -
settings_tabs_field_{$type}
actiondo_action( "settings_tabs_field_{$type}", $option ); -
wcps_builder_{$viewType}
actiondo_action( "wcps_builder_{$viewType}", $post_id, $PostGridData ); -
apply_filters( "wcps_generate_element_html_{$type}", $html, $postData, $element, $children ); -
apply_filters( 'wcps_layout_element_content_class', $element_class, $args ); -
apply_filters( 'wcps_layout_element_content_link', $product_url, $args ); -
apply_filters( 'wcps_layout_element_thumbnail_class', $element_class, $args ); -
apply_filters( 'wcps_layout_element_thumbnail_src', $thumb_image_url, $args ); -
apply_filters( 'wcps_layout_element_thumbnail_url', $permalink, $args ); -
apply_filters( 'wcps_layout_element_title_class', $element_class, $args ); -
apply_filters( 'wcps_layout_element_title_text', $post_title, $args ); -
wcps_layout_elements
filterapply_filters( 'wcps_layout_elements', $layout_elements ); -
do_action( "wcps_layout_metabox_content_{$id}", $post_id ); -
wcps_layout_metabox_save
actiondo_action( 'wcps_layout_metabox_save', $post_id ); -
wcps_metabox_content_{$id}
actiondo_action( "wcps_metabox_content_{$id}", $post_id ); -
wcps_metabox_save
actiondo_action( 'wcps_metabox_save', $post_id ); -
wcps_plugin_activation
actiondo_action( 'wcps_plugin_activation' ); -
wcps_plugin_deactivation
actiondo_action( 'wcps_plugin_deactivation' ); -
wcps_plugin_uninstall
actiondo_action( 'wcps_plugin_uninstall' ); -
wcps_posttype_wcps
filterapply_filters( 'wcps_posttype_wcps', array( 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => $singular, 'all_items' => sprintf(__('All %s', 'woocommerce-products-slider'), $plural), 'add_new' => __('Add New', 'woocommerce-products-slider'), 'add_new_item' => sprintf(__('Add %s', 'woocommerce-products-slider'), $singular), 'edit' => __('Edit', 'woocommerce-products-slider'), 'edit_item' => sprintf(... ); -
wcps_posttype_wcps_layout
filterapply_filters( 'wcps_posttype_wcps_layout', array( 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => $singular, 'all_items' => sprintf(__('All %s', 'woocommerce-products-slider'), $plural), 'add_new' => __('Add New', 'woocommerce-products-slider'), 'add_new_item' => sprintf(__('Add %s', 'woocommerce-products-slider'), $singular), 'edit' => __('Edit', 'woocommerce-products-slider'), 'edit_item' => sprintf(... ); -
wcps_query_only_args
filterapply_filters( 'wcps_query_only_args', array( 'no_check' => __('No check', 'woocommerce-products-slider'), 'on_sale' => __('On sale', 'woocommerce-products-slider'), 'featured' => __('Featured', 'woocommerce-products-slider'), 'in_stock' => __('In stock', 'woocommerce-products-slider'), ) ); -
wcps_ribbon_img
filterapply_filters( 'wcps_ribbon_img', $ribbon_url ); -
wcps_settings_content_{$id}
actiondo_action( "wcps_settings_content_{$id}", $tab ); -
wcps_settings_save
actiondo_action( 'wcps_settings_save' ); -
wcps_settings_tabs
filterapply_filters( 'wcps_settings_tabs', $wcps_settings_tab ); -
do_action( "wcps_settings_tabs_right_panel_{$id}" ); -
wcps_slider_for_args
filterapply_filters( 'wcps_slider_for_args', array('products' => 'Products', 'categories' => 'Categories') ); -
wcps_slider_item
actiondo_action( 'wcps_slider_item', $args ); -
do_action( 'wcps_slider_item_dokan_vendor', $args ); -
do_action( 'wcps_slider_item_edd_download', $args ); -
wcps_slider_item_order
actiondo_action( 'wcps_slider_item_order', $args ); -
wcps_slider_item_term
actiondo_action( 'wcps_slider_item_term', $args ); -
wcps_slider_main
actiondo_action( 'wcps_slider_main', $args ); -
apply_filters( 'wcps_slider_query_dokan_vendors_args', $query_args, $args );
Generated from Product Slider, Product Grid, Product Masonry'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: