Unregisters capabilities from being used in map_meta_cap().
Description
Source
File: src/db-objects/post-type-manager.php
protected function unregister_map_meta_caps() { global $post_type_meta_caps; $meta_caps = array( 'read_' . $this->get_prefix() . 'form', 'edit_' . $this->get_prefix() . 'form', 'delete_' . $this->get_prefix() . 'form', ); foreach ( $meta_caps as $meta_cap ) { if ( isset( $post_type_meta_caps[ $meta_cap ] ) ) { unset( $post_type_meta_caps[ $meta_cap ] ); } } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |