function remove_menu_items() { if( current_user_can( 'רמת יוזר' ) ){ remove_menu_page( 'edit.php?post_type=elementor_library' ); remove_menu_page( 'edit.php?post_type=page' ); remove_menu_page( 'קישור של עמוד ' ); } } add_action( 'admin_menu', 'remove_menu_items' );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter