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.


Top ↑

Source

File: wp-includes/post-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.