Пример #1
0
 public function enqueue()
 {
     PeThemeAsset::addAsset("script", "framework/js/admin/jquery.theme.debug.js", array('jquery', 'pe_theme_utils'), "pe_theme_debug", true);
     wp_localize_script("pe_theme_debug", 'peThemeDebug', array("url" => admin_url("admin-ajax.php")));
     wp_enqueue_script("pe_theme_debug");
 }