the_meta_key WordPress Filter Hook
The the_meta_key WordPress hook is a versatile hook that can be used to add custom data to a WordPress post. This hook can be used to add anything from custom field data to post meta data. This hook is also useful for adding custom data to a WordPress comment.
apply_filters( 'the_meta_key', string $html , string $key , string $value ) #
Filters the HTML output of the li element in the post custom fields list.
Parameters
- $html
(string)The HTML output for the li element.
- $key
(string)Meta key.
- $value
(string)Meta value.
Source
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |