/** * Add any scripts that might be needed to format the shortcode */ public function addScript() { if (!self::$addedAlready) { self::$addedAlready = true; // wp_register_script('my-script', plugins_url('js/my-script.js', __FILE__), array('jquery'), '1.0', true); // wp_print_scripts('my-script'); } }