I need to include 'mystyle.css' and 'myscript.js' to the head, of page wherever [myShortcode] shortcode is used inside '<body>'
backticks
function myShortcode_func( $atts ){
return "<div id='mydivID'></div>";
}
add_shortcode( 'myShortcode', 'myShortcode_func' );
backticks
Can I accomplish this task using Plugin?
thus
How to use wp_enqueue_scripts, wp_enqueue_script Hooks?
Thank you.