Created
November 25, 2019 14:36
-
-
Save mido1983/56d33393f03937d9578c11462ee04e5e to your computer and use it in GitHub Desktop.
Загрузить скрипты на определённой странице меню верхнего уровня в панели администратора (в примере edit.php - “Записи”):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function enqueue_my_scripts($hook) { | |
if ( 'edit.php' != $hook ) { | |
return; | |
} | |
// ENQUEUE SCRIPTS… | |
} | |
add_action( 'admin_enqueue_scripts', 'enqueue_my_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment