wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_get_registered_entity_actions › WordPress Function

Da7.2.0
Deprecaton/a
› wp_get_registered_entity_actions ( $kind, $name )
Parametri: (2)
  • (string) $kind The entity kind (e.g. `postType`).
    Richiesto: Sì
  • (string) $name The entity name (e.g. `page`).
    Richiesto: Sì
Ritorna:
  • (array[]) The list of registered action definitions, in
    registration order. Empty until the `init` action has
    completed: a read before then is refused.
Definito a:
Codex:

Returns the actions registered for the given entity.



Sorgenti

function wp_get_registered_entity_actions( $kind, $name ) {
	return WP_Entity_Actions_Registry::get_instance()->get_registered( $kind, $name );
}