10Web Booster 2.34.11 has 15 actions and 20 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 10Web Booster fires an action
add_action( 'two_page_optimized_removed', function( $critical_page ) {
// Your code runs here.
}, 10, 1 );
// Change a value 10Web Booster is about to use
add_filter( 'two_save_settings_code', 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
-
two_page_optimized_removed
actiondo_action( 'two_page_optimized_removed', $critical_page['id'] ); -
tenweb_purge_all_caches
actiondo_action( 'tenweb_purge_all_caches' ); -
two_save_settings_code
filterapply_filters( 'two_save_settings_code', 0 ); -
breeze_clear_all_cache
actiondo_action( 'breeze_clear_all_cache' ); -
bwg_hompage_optimized
actiondo_action( 'bwg_hompage_optimized' ); -
apply_filters( 'get_two_enable_htaccess_caching_headers', $this->get_settings('two_enable_htaccess_caching_headers') ); -
apply_filters( 'get_two_enable_htaccess_webp_delivery', $this->get_settings('two_enable_htaccess_webp_delivery') ); -
litespeed_purge_all
actiondo_action( 'litespeed_purge_all' ); -
two_after_clear_cache
actiondo_action( 'two_after_clear_cache', debug_backtrace() ); -
do_action( 'two_after_create_critical_css', debug_backtrace() ); -
do_action( 'two_after_generate_critical_css', debug_backtrace() ); -
two_before_clear_cache
actiondo_action( 'two_before_clear_cache', debug_backtrace() ); -
do_action( 'two_before_create_critical_css', debug_backtrace() ); -
do_action( 'two_before_generate_critical_css', debug_backtrace() ); -
apply_filters( 'two_content_after_optimization', $content, 10, 1 ); -
apply_filters( 'two_content_before_optimization', $content, 10, 1 ); -
do_action( 'two_main_authorization_failed' ); -
two_modify_delay_execution
filterapply_filters( 'two_modify_delay_execution', $this->delayed_js, 10, 1 ); -
apply_filters( 'two_modify_exclude_js_from_aggregation', $this->dontmove, 10, 1 ); -
apply_filters( 'two_modify_exclude_js_from_delay', $exclude_data, 10, 1 ); -
two_override_donotcachepage
filterapply_filters( 'two_override_donotcachepage', false ); -
apply_filters( 'two_override_donotoptimizepage', false ); -
two_page_optimized
actiondo_action( 'two_page_optimized', $page_id ); -
two_save_settings_message
filterapply_filters( 'two_save_settings_message', __('Success!', 'tenweb-speed-optimizer') ); -
twoptimize_html_after_minify
filterapply_filters( 'twoptimize_html_after_minify', $content ); -
apply_filters( 'twoptimize_html_after_minify_iframe', $content ); -
apply_filters( 'twoptimize_html_after_minify_video', $content ); -
twoptimize_html_images
filterapply_filters( 'twoptimize_html_images', $content ); -
wp_meta
actiondo_action( 'wp_meta' ); -
wpml_active_languages
filterapply_filters( 'wpml_active_languages', '' ); -
wpml_default_language
filterapply_filters( 'wpml_default_language', null ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', $element_id, $element_type, false, $lang_code ); -
wpml_post_language_details
filterapply_filters( 'wpml_post_language_details', null, $post_id ); -
wpml_setting
filterapply_filters( 'wpml_setting', [], 'language_domains' ); -
wpml_switch_language
actiondo_action( 'wpml_switch_language', 'all' );
Generated from 10Web Booster'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: