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



wp_get_registered_entity_field_modules › WordPress Function

Since7.2.0
已弃用n/a
› wp_get_registered_entity_field_modules ( $kind, $name )
参数: (2)
  • (string) $kind The entity kind (e.g. `postType`).
    Required: Yes
  • (string) $name The entity name (e.g. `page`).
    Required: Yes
返回:
  • (array[]) {
    The script modules, in registration order. Empty until the `init`
    action has completed: a read before then is refused.

    @type array ...$0 {
    @type string $id The id of the script module.
    @type string[] $fields The ids of the fields the module applies to,
    in registration order.
    }
    }
定义在:
文档:

Returns the script modules registered for the given entity.



源码

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