Flx Modernize 1.15.2 has 22 actions and 12 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 Flx Modernize fires an action
add_action( 'woocommerce_after_main_content', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Flx Modernize is about to use
add_filter( 'flx_modernize_should_render', 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 whether Flx renders the current request for an anonymous visitor. * Return false to let native WordPress render it. */ apply_filters( 'flx_modernize_should_render', true ); -
/** * Filters the Global Styles cache TTL, in seconds. */ apply_filters( 'flx_modernize_global_styles_cache_ttl', self::DEFAULT_TTL_SECONDS ); -
/** * ADR-0024: seconds Cloudflare may serve a cached Flx page after its TTL while * it refreshes it (0 turns stale serving off). Clamped to 0-604800. */ apply_filters( 'flx_modernize_stale_while_revalidate', $stale, $store_route ); -
/** * WOO-0004: return false to keep store pages out of the edge cache, for * example when a plugin shows prices, currency or products per visitor. It can * only turn caching off. */ apply_filters( 'flx_modernize_store_route_cacheable', true ); -
/** * Filters a theme-asset provider's cache TTL, in seconds. */ apply_filters( 'flx_modernize_theme_assets_cache_ttl', self::DEFAULT_TTL_SECONDS, $this->provider->type() ); -
apply_filters( 'the_content', $post->post_content ); -
do_action( 'woocommerce_after_main_content' ); -
do_action( 'woocommerce_before_main_content' ); -
do_action( 'astra_body_top' ); -
do_action( 'astra_content_page_loop' ); -
apply_filters( 'astra_header_profile_gmpg_link', true ); -
do_action( 'astra_primary_content_bottom' ); -
do_action( 'astra_primary_content_top' ); -
elementor/frontend/after_enqueue_post_styles
action Used by 11 plugins → Copy link Customise this hookdo_action( 'elementor/frontend/after_enqueue_post_styles' ); -
do_action( 'elementor/frontend/after_enqueue_styles' ); -
do_action( 'elementor/frontend/before_enqueue_styles' ); -
do_action( 'elementor/post/render', $post_id ); -
do_action( 'flatsome_after_body_open' ); -
do_action( 'flatsome_after_page' ); -
do_action( 'flatsome_after_product_page' ); -
do_action( 'flatsome_before_page' ); -
do_action( 'flatsome_before_product_page' ); -
apply_filters( 'hello_elementor_enable_skip_link', true ); -
apply_filters( 'hello_elementor_skip_link_url', '#content' ); -
apply_filters( 'hello_elementor_viewport_content', 'width=device-width, initial-scale=1' ); -
do_action( 'homepage' ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( 'woocommerce_after_shop_loop' ); -
do_action( 'woocommerce_before_shop_loop' ); -
do_action( 'woocommerce_no_products_found' ); -
do_action( 'woocommerce_shop_loop' ); -
do_action( 'woocommerce_shop_loop_header' ); -
apply_filters( 'woocommerce_short_description', is_object( $post ) ? (string) $post->post_excerpt : '' ); -
do_action( 'woocommerce_sidebar' );
Generated from Flx Modernize'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: