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:

functions.php
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.

  1. Landingi Landing Pages icon Landingi Landing Pages2,000+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) . '../../' ) src/LandingiPlugin/PageTemplater.php:135
  2. Block Editor Bootstrap Blocks icon Block Editor Bootstrap Blocks900+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) bootstrap-template-loader.php:56
  3. Switch Core icon Switch Core90+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) inc/page-template.php:138
  4. Front Page Builder icon Front Page Builder60+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) template-builder.php:106
  5. Landing Pages App icon Landing Pages App50+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) . '../../' ) src/LandingPagesPlugin/PageTemplater.php:135
  6. Sales Page Addon icon Sales Page Addon30+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) beaver/bv-setup.php:100
  7. BlindMatrix e-Commerce icon BlindMatrix e-Commerce10+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) includes/class-bmfm-page-template-handler.php:102
  8. Minchu API Manager icon Minchu API Manager10+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) minchu-api-manager.php:145
  9. Digital Board icon Digital Board10+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) pagetemplater.php:148
  10. TwitchPress icon TwitchPress10+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) includes/posts/class.twitchpress-page-template-splitscreen.php:123
  11. Interactive Longform Articles icon Interactive Longform Articles10+ installs apply_filters( 'page_templater_plugin_dir_path', $this->path ) lib/page-templater.php:182
  12. HT Event icon HT Event10+ installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) admin/retister-pagetemplate.php:148
  13. Ninety in Ninety icon Ninety in NinetyFewer than 10 installs apply_filters( 'page_templater_plugin_dir_path', $this->tempate_path ) inc/class-page-templater.php:168
  14. Kitz Pro Builder icon Kitz Pro BuilderFewer than 10 installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) kitztemplater.php:144
  15. EZDIGI Tool icon EZDIGI ToolFewer than 10 installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path( __FILE__ ) ) ez-extra-demo/wp-extra-demo.php:86
  16. Novatum Payment Gateway for WooCommerce icon Novatum Payment Gateway for WooCommerceFewer than 10 installs apply_filters( 'page_templater_plugin_dir_path', plugin_dir_path(__FILE__) ) novatum-gateway.php:171
  17. MB Topbar icon 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.