wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_unregister_entity_actions › WordPress Function

Since7.2.0
已弃用n/a
› wp_unregister_entity_actions ( $kind, $name, $ids = null )
参数: (3)
  • (string) $kind The entity kind (e.g. `postType`).
    Required: Yes
  • (string) $name The entity name (e.g. `page`).
    Required: Yes
  • (string[]|null) $ids The ids of the actions to unregister. Default null, every action of the entity.
    Required: No
    默认: null
返回:
  • (array[]) The list of the definitions unregistered, in
    registration order. Empty when none is.
定义在:
文档:

Unregisters actions of an entity, see {@see WP_Entity_Actions_Registry::unregister()}.

It only runs on the wp_entity_actions_api_init action.


源码

function wp_unregister_entity_actions( $kind, $name, $ids = null ) {
	return WP_Entity_Actions_Registry::get_instance()->unregister( $kind, $name, $ids );
}