Open masuhar opened 1 month ago
Check if the post has a shortcode block, and insert a script tag only when it has. See https://www.briancoords.com/how-to-enqueue-js-for-a-shortcode/
But what are they?
$src
USe https://wordpress.stackexchange.com/questions/5144/how-to-link-to-images-in-my-plugin-regardless-of-the-plugin-folders-name/ for the URL of the JS file.
Check if the post has a shortcode block, and insert a script tag only when it has. See https://www.briancoords.com/how-to-enqueue-js-for-a-shortcode/
But what are they?
$src
provided (does NOT overwrite), and enqueues it.