the_meta

The timeline below displays how wordpress function the_meta has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Displays a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 9.4

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 5.9

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 8.5

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 5.8

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 7.7

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 7.2

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: .10

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 5.7

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 6.9

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 6.2

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: .10

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 5.2

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: .10

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 4.2

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: .11

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 3.2

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: .13

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 5.3

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    $keys = get_post_custom_keys();
    if ($keys) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode(', ', $values);
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name. */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 2.3

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: .20

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 2.2

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: .16

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 1.2

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: .14

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 5.1

/**
 * Display a list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        $li_html = '';
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @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";
        }
    }
}

WordPress Version: 0.3

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', $html, $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .20

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', $html, $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 0.2

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', $html, $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .17

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', $html, $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 9.3

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', $html, $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .21

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                esc_html(sprintf(_x('%s:', 'Post custom field name'), $key)),
                esc_html($value)
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', $html, $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 4.9

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            $html = sprintf(
                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
                /* translators: %s: Post custom field name */
                sprintf(_x('%s:', 'Post custom field name'), $key),
                $value
            );
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', $html, $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 6.3

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .24

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 4.6

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filters the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 5.4

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .30

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 5.3

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .27

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 4.4

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .30

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 4.3

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .28

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 4.4

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @internal This will probably change at some point...
 *
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 3.4

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .30

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 3.3

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .29

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 2.4

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .33

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 1.5

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .40

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 1.4

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .36

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 4.1

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 0.4

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 * @uses apply_filters() Calls 'the_meta_key' on list item HTML content, with key and value as separate parameters.
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .36

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span>" . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 3.9

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 * @uses apply_filters() Calls 'the_meta_key' on list item HTML content, with key and value as separate parameters.
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            /**
             * Filter the HTML output of the li element in the post custom fields list.
             *
             * @since 2.2.0
             *
             * @param string $html  The HTML output for the li element.
             * @param string $key   Meta key.
             * @param string $value Meta value.
             */
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 8.4

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 * @uses apply_filters() Calls 'the_meta_key' on list item HTML content, with key and value as separate parameters.
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .39

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span> " . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 7.5

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 * @uses apply_filters() Calls 'the_meta_key' on list item HTML content, with key and value as separate parameters.
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .40

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span> " . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 7.4

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 * @uses apply_filters() Calls 'the_meta_key' on list item HTML content, with key and value as separate parameters.
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: .39

/**
 * Display list of post custom fields.
 *
 * @since 1.2.0
 *
 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
 */
function the_meta()
{
    _deprecated_function(__FUNCTION__, '6.0.2', 'get_post_meta()');
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>" . esc_html($key) . ":</span> " . esc_html($value) . "</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}

WordPress Version: 3.7

/**
 * Display list of post custom fields.
 *
 * @internal This will probably change at some point...
 * @since 1.2.0
 * @uses apply_filters() Calls 'the_meta_key' on list item HTML content, with key and value as separate parameters.
 */
function the_meta()
{
    if ($keys = get_post_custom_keys()) {
        echo "<ul class='post-meta'>\n";
        foreach ((array) $keys as $key) {
            $keyt = trim($key);
            if (is_protected_meta($keyt, 'post')) {
                continue;
            }
            $values = array_map('trim', get_post_custom_values($key));
            $value = implode($values, ', ');
            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>{$key}:</span> {$value}</li>\n", $key, $value);
        }
        echo "</ul>\n";
    }
}