Post_Type_Manager::unregister_map_meta_caps()

Unregisters capabilities from being used in map_meta_cap().

Description

Those capabilities are already handled by the capability manager.

See also

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

Changelog
Version Description
1.0.0 Introduced.