Alternative template path for Genesis Custom Blocks
<?php | |
/** | |
* Gets an alternate template path for Genesis Custom Blocks. | |
* | |
* This is handy if you want to include GCB blocks in a plugin versus your theme. | |
* @param string $path The template path. | |
* @return string An alternate template path. | |
*/ | |
function ccb_get_alternate_template_path( $path ) { | |
unset( $path ); | |
return __DIR__; | |
} | |
add_filter( 'genesis_custom_blocks_template_path', 'ccb_get_alternate_template_path' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment