apply_filters( 'the_meta_key', string $html, string $key, string $value )
- Since
- 2.2.0
Filters the HTML output of the li element in the post custom fields list.
Parameters
$htmlstring- The HTML output for the li element.
$keystring- Meta key.
$valuestring- Meta value.
Fired at · 1
wp-includes/post-template.php:1148the_meta()
Source
* @since 2.2.0 * * @param string $html The HTML output for the li element. * @param string $key Meta key. * @param string $value Meta value. */ $li_html .= apply_filters( 'the_meta_key', $html, $key, $value ); } if ( $li_html ) { echo "<ul class='post-meta'>\n{$li_html}</ul>\n"; } }History
Introduced in 2.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.