wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_unregister_entity_actions › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_unregister_entity_actions ( $kind, $name, $ids = null )
Parameter: (3)
  • (string) $kind The entity kind (e.g. `postType`).
    Erforderlich: Ja
  • (string) $name The entity name (e.g. `page`).
    Erforderlich: Ja
  • (string[]|null) $ids The ids of the actions to unregister. Default null, every action of the entity.
    Erforderlich: Nein
    Standard: null
Gibt zurück:
  • (array[]) The list of the definitions unregistered, in
    registration order. Empty when none is.
Definiert in:
Codex:

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

It only runs on the wp_entity_actions_api_init action.


Quellcode

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