{$adjacent}_post_link

{$adjacent}_post_link

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('{$adjacent}_post_link') is found 1 times:

  • /wp-includes/link-template.php line 2388
    2384
    2385
    2386
    2387
    2388
    2389
    2390
    2391
    2392
    2393
    2394
         * @param string         $link     Link permalink format.
         * @param WP_Post|string $post     The adjacent post. Empty string if no corresponding post exists.
         * @param string         $adjacent Whether the post is previous or next.
         */
        return apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent );
    }
     
    /**
     * Displays the adjacent post link.
     *
     * Can be either next post link or previous.