MrSeokar Inline Related Products for WooCommerce 2.3.0 has 6 actions and 19 filters, read directly from its source code on Nov 18, 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 MrSeokar Inline Related Products for WooCommerce fires an action
add_action( 'mrseokar_ip_register_settings', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value MrSeokar Inline Related Products for WooCommerce is about to use
add_filter( 'mrseokar_ip_cache_ttl', function( $value ) {
// Change $value here.
return $value;
}, 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
-
/** * Filters how long the product boxes of a post are cached, in seconds. 0 * disables the cache. */ apply_filters( 'mrseokar_ip_cache_ttl', (int) MrSeokar_IP_Settings::get( 'cache_ttl' ) ); -
/** * Filters the query used to list the products of a category (add-ons change * the order here). */ apply_filters( 'mrseokar_ip_category_query_args', $args, (int) $post_id ); -
/** * Filters the priority of the content filter. The default (20) runs after * wpautop, shortcodes and page builders such as Elementor (priority 9). */ apply_filters( 'mrseokar_ip_content_priority', 20 ); -
/** * Filters the default settings (add-ons add their own keys here). */ apply_filters( 'mrseokar_ip_default_settings', $defaults ); -
/** * Filters the focus keyword used to find products (for other SEO plugins). */ apply_filters( 'mrseokar_ip_focus_keyword', $keyword, $post_id ); -
/** * Filters the title words used to search products. */ apply_filters( 'mrseokar_ip_keywords', $words ); -
/** * Filters the settings used for one post. */ apply_filters( 'mrseokar_ip_post_settings', self::all(), (int) $post_id ); -
/** * Filters the post types where products are inserted. */ apply_filters( 'mrseokar_ip_post_types', $types ); -
/** * Lets an add-on choose the products of a post before the automatic method * runs (products chosen on the post itself still come first). */ apply_filters( 'mrseokar_ip_pre_find', null, $post_id, $limit ); -
/** * Lets an add-on provide the markup of a style it adds. */ apply_filters( 'mrseokar_ip_pre_product_html', null, $style, $parts, $product, $s ); -
/** * Lets an add-on render the boxes itself (for example several products in one * slider box). Return an array of box HTML strings to use it. */ apply_filters( 'mrseokar_ip_pre_render_blocks', null, $products, $settings, $post_id ); -
/** * Filters the HTML of one product box. */ apply_filters( 'mrseokar_ip_product_html', $html, $product, $s ); -
/** * Filters the related product IDs of a post. */ apply_filters( 'mrseokar_ip_product_ids', $ids, $post_id, self::$last_source ); -
/** * Filters the building blocks of a product box. Values must stay escaped HTML. */ apply_filters( 'mrseokar_ip_product_parts', $parts, $product, $s ); -
/** * Lets the Pro add-on add its sections and fields to the settings page. */ do_action( 'mrseokar_ip_register_settings', self::PAGE ); -
/** * Filters the sanitized settings (add-ons sanitize their own keys here). */ apply_filters( 'mrseokar_ip_sanitize_settings', $clean, $input ); -
/** * Filters the allowed values of the select settings (add-ons add styles here). */ apply_filters( 'mrseokar_ip_setting_choices', $choices ); -
/** * Filters whether products are inserted into this post. */ apply_filters( 'mrseokar_ip_should_insert', true, $post_id ); -
/** * Filters the stop words ignored when titles and category names are compared. */ apply_filters( 'mrseokar_ip_stopwords', $list ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'litespeed_purge_post', $post_id ); -
apply_filters( 'mrseokar_ip_pro_active', false ); -
do_action( 'wpfc_clear_all_cache' );
Generated from MrSeokar Inline Related Products 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.
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: