📅  最后修改于: 2022-03-11 14:54:46.731000             🧑  作者: Mango
function pw_load_scripts($hook) {
global $pw_settings_page;
if( $hook != $pw_settings_page )
return;
wp_enqueue_script( 'custom-js', plugins_url( 'js/custom.js' , dirname(__FILE__) ) );
}
add_action('admin_enqueue_scripts', 'pw_load_scripts');