wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_get_registered_entity_actions › WordPress Function

Od7.2.0
Przestarzałyn/a
› wp_get_registered_entity_actions ( $kind, $name )
Parametry: (2)
  • (string) $kind The entity kind (e.g. `postType`).
    Wymagane: Tak
  • (string) $name The entity name (e.g. `page`).
    Wymagane: Tak
Powrót:
  • (array[]) The list of registered action definitions, in
    registration order. Empty until the `init` action has
    completed: a read before then is refused.
Zdefiniowane na:
Codex:

Returns the actions registered for the given entity.



Źródło

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