wordpress include script and style in short code

wp_enqueue_script and wp_enqueue_style will not work in shortcode

 

public function shortcode($id=null)    {

wp_print_scripts(‘scriptname’);

wp_print_styles ( ‘stylename’);

}

  Like
Author: bm on February 13, 2014
Category: wordpress

Your comment:

Your Name

Comment:




Last articles