wp_get_attachment_id3_keys хук-фильтр . WP 3.9.0
Filters the editable list of keys to look up data from an attachment's metadata.
Использование
add_filter( 'wp_get_attachment_id3_keys', 'filter_function_name_5026', 10, 3 ); function filter_function_name_5026( $fields, $attachment, $context ){ // filter... return $fields; }
- $fields(массив)
- Key/value pairs of field keys to labels.
- $attachment(WP_Post)
- Attachment object.
- $context(строка)
- The context. Accepts 'edit', 'display'.
По умолчанию: 'display'
Список изменений
С версии 3.9.0 | Введена. |
Где вызывается хук
wp_get_attachment_id3_keys
wp-includes/media.php 2810
return apply_filters( 'wp_get_attachment_id3_keys', $fields, $attachment, $context );