Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The get_current_screen function should help.
I think it's worth trying this:
$screen = get_current_screen();
if($screen->id == 'edit-category') {
//здесь код
}
<?php
add_filter('admin_footer', 'screen_test');
function screen_test(){
$screen = get_current_screen();
if($screen->id == 'edit-category') {
?>
<script>
alert('Тест!');
</script>
<?php
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question