コード例 #1
0
 /**
  * Format the script in a way that will be compatible with WordPress.
  */
 public function enqueue_script()
 {
     if (!self::$script_added && '' != self::$tooltip_script) {
         self::$script_added = true;
         echo '<script>jQuery(document).ready(function($) { "use strict"; ' . wp_kses_post(self::$tooltip_script) . '});</script>';
     }
 }