adjacent_posts_rel_link_wp_head() - WordPress 函数参考中文文档

返回介绍

adjacent_posts_rel_link_wp_head()

发布于 2017-09-10 字数1109 浏览 1118 评论 0

adjacent_posts_rel_link_wp_head()

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.


源代码

File: wp-includes/link-template.php

function adjacent_posts_rel_link_wp_head() {
	if ( ! is_single() || is_attachment() ) {
		return;
	}
	adjacent_posts_rel_link();
}

更新日志

Version 描述
3.0.0 Introduced.

相关函数

Uses

  • wp-includes/query.php:
    is_single()
  • wp-includes/query.php:
    is_attachment()
  • wp-includes/link-template.php:
    adjacent_posts_rel_link()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!