Automattic\WooCommerce\Abilities
ExtensibleAbilities::get_fields
Fields of a resource, keyed by namespace, then field.
Метод класса: ExtensibleAbilities{}
Хуков нет.
Возвращает
array<string,. array<string, array<string, mixed>>>
Использование
$result = ExtensibleAbilities::get_fields( $resource_name ): array;
- $resource_name(строка) (обязательный)
- Resource.
Список изменений
| С версии 11.3.0 | Введена. |
Код ExtensibleAbilities::get_fields() ExtensibleAbilities::get fields WC 11.3.0
public static function get_fields( string $resource_name ): array {
return self::$fields[ $resource_name ] ?? array();
}