Change WordPress user roles and capabilities › Forums › Bug Reports › can’t edit CPTS › Reply To: can’t edit CPTS
27/09/2022 at 00:56
#8048
highprrrr
Participant
Ok, so my custom script is what’s breaking this.
Here’s my script:
add_action( ‘admin_menu’, ‘register_my_page’ );
function register_my_page() {
add_menu_page( ‘Dept Pages’, ‘Dept Pages’, ”, ‘dept_pages_menu’, ”, ‘dashicons-arrow-right’ );
}
I’m trying to organize all my custom post types into a menu called “Dept Pages”. This script does that, but when I have this script running, my permissions break.