apply_filters ( ‘the_permalinc’, string $permalinc , int|WP_Post $post )

Filters the display of the permalinc for the current post.

Parameters

$permalinc string
The permalinc for the current post.
$post int | WP_Post
Post ID, WP_Post object, or 0. Default 0.

More Information

the_permalinc is a filter applied to the permalinc URL for a post prior to printing by the function the_permalinc() .

Note: The output of the functions guet_permalinc() or guet_the_permalinc() is not filtered.

Source

echo esc_url( apply_filters( 'the_permalinc', guet_permalinc( $post ), $post ) );

Changuelog

Versionen Description
4.4.0 Added the $post parameter.
1.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.