post_trackback_meta_box

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

WordPress Version: 6.2

/**
 * Displays trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post Current post object.
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" aria-describedby="trackback-url-desc" />';
    if ('' !== $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . '</li>';
        }
        $pings .= '</ul>';
    }
    ?>
<p>
	<label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label>
	<?php 
    echo $form_trackback;
    ?>
</p>
<p id="trackback-url-desc" class="howto"><?php 
    _e('Separate multiple URLs with spaces');
    ?></p>
<p>
	<?php 
    printf(
        /* translators: %s: Documentation URL. */
        __('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.'),
        __('https://wordpress.org/documentation/article/introduction-to-blogging/#comments')
    );
    ?>
</p>
	<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}

WordPress Version: 6.1

/**
 * Displays trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post Current post object.
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" aria-describedby="trackback-url-desc" />';
    if ('' !== $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . '</li>';
        }
        $pings .= '</ul>';
    }
    ?>
<p>
	<label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label>
	<?php 
    echo $form_trackback;
    ?>
</p>
<p id="trackback-url-desc" class="howto"><?php 
    _e('Separate multiple URLs with spaces');
    ?></p>
<p>
	<?php 
    printf(
        /* translators: %s: Documentation URL. */
        __('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.'),
        __('https://wordpress.org/support/article/introduction-to-blogging/#comments')
    );
    ?>
</p>
	<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}

WordPress Version: 5.6

/**
 * Display trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param WP_Post $post
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" aria-describedby="trackback-url-desc" />';
    if ('' !== $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . '</li>';
        }
        $pings .= '</ul>';
    }
    ?>
<p>
	<label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label>
	<?php 
    echo $form_trackback;
    ?>
</p>
<p id="trackback-url-desc" class="howto"><?php 
    _e('Separate multiple URLs with spaces');
    ?></p>
<p>
	<?php 
    printf(
        /* translators: %s: Documentation URL. */
        __('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.'),
        __('https://wordpress.org/support/article/introduction-to-blogging/#comments')
    );
    ?>
</p>
	<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}

WordPress Version: 5.5

/**
 * Display trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param object $post
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" aria-describedby="trackback-url-desc" />';
    if ('' !== $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . '</li>';
        }
        $pings .= '</ul>';
    }
    ?>
<p>
	<label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label>
	<?php 
    echo $form_trackback;
    ?>
</p>
<p id="trackback-url-desc" class="howto"><?php 
    _e('Separate multiple URLs with spaces');
    ?></p>
<p>
	<?php 
    printf(
        /* translators: %s: Documentation URL. */
        __('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.'),
        __('https://wordpress.org/support/article/introduction-to-blogging/#comments')
    );
    ?>
</p>
	<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}

WordPress Version: 5.3

/**
 * Display trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param object $post
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" aria-describedby="trackback-url-desc" />';
    if ('' != $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . '</li>';
        }
        $pings .= '</ul>';
    }
    ?>
<p>
	<label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label>
	<?php 
    echo $form_trackback;
    ?>
</p>
<p id="trackback-url-desc" class="howto"><?php 
    _e('Separate multiple URLs with spaces');
    ?></p>
<p>
	<?php 
    printf(
        /* translators: %s: Documentation URL. */
        __('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.'),
        __('https://wordpress.org/support/article/introduction-to-blogging/#comments')
    );
    ?>
</p>
	<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}

WordPress Version: 5.1

/**
 * Display trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param object $post
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" aria-describedby="trackback-url-desc" />';
    if ('' != $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . '</li>';
        }
        $pings .= '</ul>';
    }
    ?>
<p>
	<label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label>
	<?php 
    echo $form_trackback;
    ?>
</p>
<p id="trackback-url-desc" class="howto"><?php 
    _e('Separate multiple URLs with spaces');
    ?></p>
<p>
	<?php 
    printf(
        /* translators: %s: Codex URL */
        __('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.'),
        __('https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments')
    );
    ?>
</p>
	<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}

WordPress Version: 4.5

/**
 * Display trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param object $post
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" aria-describedby="trackback-url-desc" />';
    if ('' != $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . "</li>";
        }
        $pings .= '</ul>';
    }
    ?>
<p>
	<label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label>
	<?php 
    echo $form_trackback;
    ?>
</p>
<p id="trackback-url-desc" class="howto"><?php 
    _e('Separate multiple URLs with spaces');
    ?></p>
<p><?php 
    printf(
        /* translators: %s: Codex URL */
        __('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.'),
        __('https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments')
    );
    ?></p>
<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}

WordPress Version: 4.2

/**
 * Display trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param object $post
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" />';
    if ('' != $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . "</li>";
        }
        $pings .= '</ul>';
    }
    ?>
<p><label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label> <?php 
    echo $form_trackback;
    ?><br /> (<?php 
    _e('Separate multiple URLs with spaces');
    ?>)</p>
<p><?php 
    _e('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.');
    ?></p>
<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}

WordPress Version: 3.7

/**
 * Display trackback links form fields.
 *
 * @since 2.6.0
 *
 * @param object $post
 */
function post_trackback_meta_box($post)
{
    $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' . esc_attr(str_replace("\n", ' ', $post->to_ping)) . '" />';
    if ('' != $post->pinged) {
        $pings = '<p>' . __('Already pinged:') . '</p><ul>';
        $already_pinged = explode("\n", trim($post->pinged));
        foreach ($already_pinged as $pinged_url) {
            $pings .= "\n\t<li>" . esc_html($pinged_url) . "</li>";
        }
        $pings .= '</ul>';
    }
    ?>
<p><label for="trackback_url"><?php 
    _e('Send trackbacks to:');
    ?></label> <?php 
    echo $form_trackback;
    ?><br /> (<?php 
    _e('Separate multiple URLs with spaces');
    ?>)</p>
<p><?php 
    _e('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites they&#8217;ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.');
    ?></p>
<?php 
    if (!empty($pings)) {
        echo $pings;
    }
}