Custom Hooks

tsp_filter_add_tabs


Description
Filter to add/remove settings page tabs.

Parameters

ParamTypeDescription
$tabsarraySetting tabs

tsp_filter_post_types


Description
Filter to add/remove post types in settings.

Parameters

ParamTypeDescription
$all_post_types arrayAll registered post types

tsp_filter_taxonomies


Description
Filter to add/remove taxonomies in settings.

Parameters

ParamTypeDescription
$all_taxonomies arrayAll registered taxonomies

tsp_filter_meta_themes


Description
Filter to add/remove themes in post metadata.

Parameters

ParamTypeDescription
$active_themes arrayAll themes

tsp_filter_post_type_settings_themes


Description
Filter to add/remove themes in post type settings.

Parameters

ParamTypeDescription
$all_themes arrayAll activated themes

tsp_filter_archive_settings_themes


Description
Filter to add/remove themes in archive settings.

Parameters

ParamTypeDescription
$all_themes arrayAll activated themes

tsp_filter_classic_editor_themes


Description
Filter to add/remove themes in classic editor settings.

Parameters

ParamTypeDescription
$all_themes arrayAll activated themes

tsp_filter_front_page_themes


Description
Filter to add/remove themes in front page settings.

Parameters

ParamTypeDescription
$all_themes arrayAll activated themes

tsp_filter_blog_page_themes


Description
Filter to add/remove themes in blog page settings.

Parameters

ParamTypeDescription
$all_themes arrayAll activated themes

tsp_filter_block_themes


Description
Filter to add/remove block themes.

Parameters

ParamTypeDescription
$block_themes arrayContains block themes

tsp_filter_global_themes


Description
Filter to add/remove themes from all settings.

Parameters

ParamTypeDescription
$compatible_themesintContains all themes

tsp_filter_latest_post_page_themes


Description
Filter to add/remove restricted post types in TSP.

Parameters

ParamTypeDescription
$not_allowed_post_types intContains restricted post types.

tsp_filter_latest_post_page_themes


Description
Filter to add/remove themes in your latest post settings.

Parameters

ParamTypeDescription
$all_themes arrayContains all themes.

tsp_filter_debug_bar_title


Description
Filter to change debug bar title.


tsp_filter_debug_bar_classes


Description
Filter to add/remove debug bar classes.


tsp_filter_archive_theme


Description
Filter hook to change archive/category theme.

Parameters

ParamTypeDescription
$switched_theme stringContains switched theme.

tsp_filter_update_switch_theme


Description
Filter to update the switched theme.

Parameters

ParamTypeDescription
$switched_theme stringContains switched theme.

tsp_action_before_switch_theme


Description
Action fired right before switching theme.

Parameters

ParamTypeDescription
$switched_theme stringContains switched theme.
$post_idintContains post id.

tsp_action_after_switch_theme


Description
Action fired right after switching theme.

Parameters

ParamTypeDescription
$switched_theme stringContains switched theme.
$post_idintContains post id.

tsp_action_theme_switch_admin_bar


Description
Action fired during adding Theme Switcher drop down in admin bar.


tsp_action_debug_bar_enqueue_scripts


Description
Action fired during adding Theme Switcher debug bar enqueueing scripts.

tsp_filter_site_editor_enable


Description
Filter to enable/disable the Site Editor access.
NOTE: This plugin does not yet support the Site Editor functionality completely.


What are your feelings
Updated on March 10, 2025