Last active
September 20, 2017 08:46
-
-
Save bfintal/24b16753933fab6639d6243b8ae413f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_footer', 'add_my_templates', 11 ); | |
function add_my_templates() { | |
if ( ! class_exists( 'PageBuilderSandwich' ) ) { | |
return; | |
} | |
if ( PageBuilderSandwich::is_editable_by_user() ) { | |
include 'path/to/my/template.php'; | |
include 'path/to/my/template2.php'; | |
include 'path/to/my/template3.php'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment