WordPress как на ладони
Очень Удобный и Быстрый Хостинг для сайтов на WordPress. Пользуюсь сам и вам рекомендую!
фильтр не описан

auth_(object_type)_(object_subtype)_meta_(meta_key) хук-фильтр . WP 4.6.0

Устарел с версии 4.9.8. Больше не поддерживается и может быть удален. Смотрите auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}.

Deprecated: 4.9.8 Use {@see 'auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}'} instead.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

Filters whether the user is allowed to edit meta for specific object types/subtypes.

Return true to have the mapped meta caps from edit_{$object_type} apply.

The dynamic portion of the hook name, $object_type refers to the object type being filtered. The dynamic portion of the hook name, $object_subtype refers to the object subtype being filtered. The dynamic portion of the hook name, $meta_key, refers to the meta key passed to map_meta_cap().

Использование

add_filter( 'auth_(object_type)_(object_subtype)_meta_(meta_key)', 'filter_function_name_46', 10, 3 );
function filter_function_name_46( $allowed, $meta_key, $object_id ){
	// filter...

	return $allowed;
}
$allowed(true|false)
Whether the user can add the object meta.
По умолчанию: false
$meta_key(строка)
The meta key.
$object_id(int)
Object ID.

Список изменений

С версии 4.6.0 Введена.
С версии 4.6.0 As auth_post_{$post_type}_meta_{$meta_key}.
С версии 4.7.0 Renamed from auth_post_{$post_type}_meta_{$meta_key} to auth_{$object_type}_{$object_subtype}_meta_{$meta_key}.
Устарела с 4.9.8 Use {@see 'auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}'} instead.

Где вызывается хук

map_meta_cap()
auth_(object_type)_(object_subtype)_meta_(meta_key)
wp-includes/capabilities.php 381-386
$allowed = apply_filters_deprecated(
	"auth_{$object_type}_{$object_subtype}_meta_{$meta_key}",
	array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ),
	'4.9.8',
	"auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}"
);

Где используется хук в ядре WordPress

wp-includes/meta.php 1367
add_filter( "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}", $args['auth_callback'], 10, 6 );
wp-includes/meta.php 1369
add_filter( "auth_{$object_type}_meta_{$meta_key}", $args['auth_callback'], 10, 6 );
wp-includes/meta.php 1512
remove_filter( "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}", $args['auth_callback'] );
wp-includes/meta.php 1514
remove_filter( "auth_{$object_type}_meta_{$meta_key}", $args['auth_callback'] );