Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class My_Block_Plugin {
  2. /**
  3. * Register any hooks that this component needs.
  4. */
  5. public function __construct() {
  6. add_filter( 'block_lab_template_path', array( $this, 'template_path' ) );
  7. }
  8.  
  9. /**
  10. * Include the plugin's blocks folder in the template path.
  11. */
  12. public function template_path() {
  13. return untrailingslashit( dirname( __FILE__ ) );
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement