ShapedRecommend 1.0.4 has 6 actions and 8 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 ShapedRecommend fires an action
add_action( 'shaped_recommend_loaded', function() {
// Your code runs here.
}, 10, 1 );
// Change a value ShapedRecommend is about to use
add_filter( 'sprcm_snapshot_generator', 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
-
/** * Anything can come back from a filter, so the shape is re-established below * rather than trusted — the same posture {@see * \ShapedPlugin\ShapedRecommend\Core\GateMap::resolve()} takes. */ apply_filters( 'sprcm_snapshot_generator', array( 'free' => SHAPED_RECOMMEND_VERSION, 'pro' => null, ) ); -
/** * Fires once WooCommerce is confirmed active and the plugin is ready to load * its features. ShapedRecommend Pro also boots from this action. */ do_action( 'shaped_recommend_loaded' ); -
/** * Fires once the plugin has loaded, for third-party compatibility shims. */ do_action( 'shaped_recommend_register_shims' ); -
/** * Filters whether the BFCM 2026 notice campaign is active. */ apply_filters( 'shapedplugin_bfcm_2026_active', $active ); -
/** * Anything can come back from a filter, so the shape is re-established below * rather than trusted. Every consumer — the builder, save validation and the * resolver — can then rely on "area => list of string tokens" without * repeating the same defensive checks. */ apply_filters( 'sprcm_capabilities', self::FREE_CAPABILITIES ); -
/** * Filters the card template path. */ apply_filters( 'sprcm_card_template', self::locate( 'card' ), $product ); -
/** * Filters a Deployment's display settings at render time. */ apply_filters( 'sprcm_display_settings', $offer->display_settings(), $offer ); -
/** * Filters the registered document migrations. */ apply_filters( 'sprcm_document_migrations', $migrations ); -
/** * Filters the maximum size of an import file, in bytes. */ apply_filters( 'sprcm_import_max_bytes', self::DEFAULT_MAX_BYTES ); -
/** * Fires after a Recommendation is deleted. */ do_action( 'sprcm_recommendation_deleted', $id ); -
/** * Fires when a restored revision fails save validation. */ do_action( 'sprcm_recommendation_restore_rejected', $post_id, $errors ); -
/** * Fires after a Recommendation is written. */ do_action( 'sprcm_recommendation_saved', $stored, $result['document'], $status, $previous ); -
/** * Fires after the snapshot has been replaced. */ do_action( 'sprcm_snapshot_rebuilt', $snapshot['build_id'], $previous, $report->lines() ); -
apply_filters( 'woocommerce_price_trim_zeros', false );
Generated from ShapedRecommend'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: