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', 'wp_kama_the_meta_key_filter', 10, 3 );

/**
 * Function for `the_meta_key` filter-hook.
 * 
 * @param string $html  The HTML output for the li element.
 * @param string $key   Meta key.
 * @param string $value Meta value.
 *
 * @return string
 */
function wp_kama_the_meta_key_filter( $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()
the_meta_key
wp-includes/post-template.php 1144
$li_html .= apply_filters( 'the_meta_key', $html, $key, $value );

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

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