Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Include_my_php($params = array()) {
- extract(shortcode_atts(array('file' => 'default'), $params));
- ob_start();
- include(get_theme_root() . '/' . get_template() . "/$file.php");
- return ob_get_clean();
- }
- add_shortcode('myphp', 'Include_my_php');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement