WordPress filter hook
thepack-kit/theme_templates_ids
Fired by 2 WordPress plugins, running on 2,020+ sites between them.
How to use thepack-kit/theme_templates_ids
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'thepack-kit/theme_templates_ids', function( $theme_templates_ids, $location ) {
// Change $theme_templates_ids here.
return $theme_templates_ids;
}, 10, 2 );Argument names come from The Pack Elementor addon's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire thepack-kit/theme_templates_ids
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
The Pack Elementor addon2,000+ installs
apply_filters( 'thepack-kit/theme_templates_ids', $theme_templates_ids, $location )includes/header-footer/includes/modules/theme-builder/classes/conditions-manager.php:505 -
Educat Elementor LMS Addon20+ installs
apply_filters( 'thepack-kit/theme_templates_ids', $theme_templates_ids, $location )admin/theme-builder/includes/modules/theme-builder/classes/conditions-manager.php:505
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.