Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

shortcode in wp

function user() {     
 ob_start();
 include(get_stylesheet_directory() . '/tutorial.php');
 return ob_get_clean();
}
add_shortcode( 'countdown', 'user' );
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #shortcode #wp
ADD COMMENT
Topic
Name
2+1 =