Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class My_Block_Plugin {
- /**
- * Register any hooks that this component needs.
- */
- public function __construct() {
- add_filter( 'block_lab_template_path', array( $this, 'template_path' ) );
- }
- /**
- * Include the plugin's blocks folder in the template path.
- */
- public function template_path() {
- return untrailingslashit( dirname( __FILE__ ) );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement