我无法在这里隐藏此菜单(见图),我不知道还能做什么,请帮助。显然,我找不到正确的钩子来实现这一点。
示例:
add_action( \'wp_loaded\', \'hide_guest_authors_link_from_backend\');
function hide_guest_authors_link_from_backend() { ?>
<script>
document.querySelector("li a[href=\'users.php?page=view-guest-authors\']").style.display = \'none\';
</script>
<?php
}
?>
