WordPress filter hook
page_templater_plugin_dir_path
Fired by 17 WordPress plugins, running on 3,190+ sites between them.
“Allows filtering of file path.”
How to use page_templater_plugin_dir_path
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'page_templater_plugin_dir_path', function( $path ) {
// Change $path here.
return $path;
}, 10, 1 );Argument names come from Interactive Longform Articles's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
17 plugins that fire page_templater_plugin_dir_path
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Landingi Landing Pages2,000+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) . '../../' )src/LandingiPlugin/PageTemplater.php:135 -
Block Editor Bootstrap Blocks900+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )bootstrap-template-loader.php:56 -
Switch Core90+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )inc/page-template.php:138 -
Front Page Builder60+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )template-builder.php:106 -
Landing Pages App50+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) . '../../' )src/LandingPagesPlugin/PageTemplater.php:135 -
Sales Page Addon30+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )beaver/bv-setup.php:100 -
BlindMatrix e-Commerce10+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )includes/class-bmfm-page-template-handler.php:102 -
Minchu API Manager10+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )minchu-api-manager.php:145 -
Digital Board10+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )pagetemplater.php:148 -
TwitchPress10+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )includes/posts/class.twitchpress-page-template-splitscreen.php:123 -
Interactive Longform Articles10+ installs
apply_filters( 'page_templater_plugin_dir_path', $this->path )lib/page-templater.php:182 -
HT Event10+ installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )admin/retister-pagetemplate.php:148 -
Ninety in NinetyFewer than 10 installs
apply_filters( 'page_templater_plugin_dir_path', $this->tempate_path )inc/class-page-templater.php:168 -
Kitz Pro BuilderFewer than 10 installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )kitztemplater.php:144 -
EZDIGI ToolFewer than 10 installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) )ez-extra-demo/wp-extra-demo.php:86 -
Novatum Payment Gateway for WooCommerceFewer than 10 installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path(__FILE__) )novatum-gateway.php:171 -
MB TopbarFewer than 10 installs
apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( dirname( __FILE__, 3 ) ) . '/templates/' )inc/Modules/Topbar/PageTemplater.php:127
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.