Wordpress 钩子:adjacent_post_link
文章目录
过滤相邻的帖子链接。
原型
apply_filters( "{$adjacent}_post_link", string $output, string $format, string $link, WP_Post $post, string $adjacent )
描述
钩子名称的动态部分$ adjacent指的是邻接类型,“next”或“previous”。
参数
$output
(string)
相邻的帖子链接。
$format
(string)
链接锚格式。
$link
(string)
链接永久链接格式。
$post
(WP_Post)
相邻的帖子。
$adjacent
(string)
帖子是上一个还是下一个。
源文件
路径:wp-includes/link-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/adjacent_post_link/
文章作者 iBllex
上次更新 2019-02-16