Created
August 29, 2018 14:05
-
-
Save eto4detak/cf7f765b2a658ffd035a2891276a78c7 to your computer and use it in GitHub Desktop.
wp php screen page admin
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
<?php | |
add_action('current_screen', 'autozone_admin_db_ajax'); | |
function autozone_admin_db_ajax(){ | |
if('settings_page_keypage99' === get_current_screen()->base){ | |
add_action('admin_print_footer_scripts', 'autozone_delete_key_js', 99); | |
add_action( 'admin_enqueue_scripts', 'autozone_ajax_delete_key'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment