the_permalink

Advertisement

Summery Summery

Filters the display of the permalink for the current post.

Syntax Syntax

apply_filters( 'the_permalink', string $permalink, int|WP_Post $post )

Parameters Parameters

$permalink

The permalink for the current post.

$post

Post ID, WP_Post object, or 0. Default 0.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Added the $post parameter.
1.5.0 Introduced.

Advertisement

Leave a Reply