Changes between Version 1 and Version 2 of Ticket #17528, comment 11
- Timestamp:
- 06/23/2011 05:34:41 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17528, comment 11
v1 v2 3 3 {{{ 4 4 // Remove "Add New" submenu items if user can only edit existing posts. 5 // This executes on the 'admin_init' action.5 // This causes permissions failure if executed on the 'admin_menu' action. 6 6 foreach ( get_post_types() as $type ) { 7 7 if ( ! plugin_func_user_can_add_posts( $type ) ) {