the_meta_key хук-фильтр . WP 2.2.0
Filters the HTML output of the li element in the post custom fields list.
Использование
add_filter( 'the_meta_key', 'filter_function_name_9682', 10, 3 ); function filter_function_name_9682( $html, $key, $value ){ // filter... return $html; }
- $html(строка)
- The HTML output for the li element.
- $key(строка)
- Meta key.
- $value(строка)
- Meta value.
Список изменений
С версии 2.2.0 | Введена. |
Где вызывается хук
the_meta_key
wp-includes/post-template.php 1120
$li_html .= apply_filters( 'the_meta_key', $html, $key, $value );