adjacent_posts_rel_link_wp_head

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

WordPress Version: 5.6

/**
 * Displays relational links for the posts adjacent to the current post for single post pages.
 *
 * This is meant to be attached to actions like 'wp_head'. Do not call this directly in plugins
 * or theme templates.
 *
 * @since 3.0.0
 * @since 5.6.0 No longer used in core.
 *
 * @see adjacent_posts_rel_link()
 */
function adjacent_posts_rel_link_wp_head()
{
    if (!is_single() || is_attachment()) {
        return;
    }
    adjacent_posts_rel_link();
}

WordPress Version: 4.6

/**
 * Displays relational links for the posts adjacent to the current post for single post pages.
 *
 * This is meant to be attached to actions like 'wp_head'. Do not call this directly in plugins
 * or theme templates.
 *
 * @since 3.0.0
 *
 * @see adjacent_posts_rel_link()
 */
function adjacent_posts_rel_link_wp_head()
{
    if (!is_single() || is_attachment()) {
        return;
    }
    adjacent_posts_rel_link();
}

WordPress Version: 4.0

/**
 * Display relational links for the posts adjacent to the current post for single post pages.
 *
 * This is meant to be attached to actions like 'wp_head'. Do not call this directly in plugins or theme templates.
 * @since 3.0.0
 *
 */
function adjacent_posts_rel_link_wp_head()
{
    if (!is_single() || is_attachment()) {
        return;
    }
    adjacent_posts_rel_link();
}

WordPress Version: 3.7

/**
 * Display relational links for the posts adjacent to the current post for single post pages.
 *
 * This is meant to be attached to actions like 'wp_head'. Do not call this directly in plugins or theme templates.
 * @since 3.0.0
 *
 */
function adjacent_posts_rel_link_wp_head()
{
    if (!is_singular() || is_attachment()) {
        return;
    }
    adjacent_posts_rel_link();
}