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



wp_get_registered_entity_field_modules › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_get_registered_entity_field_modules ( $kind, $name )
Parameter: (2)
  • (string) $kind The entity kind (e.g. `postType`).
    Erforderlich: Ja
  • (string) $name The entity name (e.g. `page`).
    Erforderlich: Ja
Gibt zurück:
  • (array<string,string[]>) The ids of the fields each module applies
    to, keyed by module id, in registration
    order. Empty until the `init` action has
    completed: a read before then is refused.
Definiert in:
Codex:

Returns the ids of the script modules registered for the given entity.



Quellcode

function wp_get_registered_entity_field_modules( $kind, $name ) {
	return WP_Entity_Fields_Registry::get_instance()->get_registered_field_modules( $kind, $name );
}