wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
the_permalink › WordPress Function
Seit1.2.0
Veraltetn/v
› the_permalink ( $post = 0 )
| Parameter: |
|
| Definiert in: |
|
| Codex: | |
| Changelog: |
|
Displays the permalink for the current post.
Ähnliche Funktionen: get_the_permalink, the_permalink_rss, get_permalink, post_permalink, get_sample_permalink
Quellcode
function the_permalink( $post = 0 ) {
/**
* Filters the display of the permalink for the current post.
*
* @since 1.5.0
* @since 4.4.0 Added the `$post` parameter.
*
* @param string $permalink The permalink for the current post.
* @param int|WP_Post $post Post ID, WP_Post object, or 0. Default 0.
*/
echo esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) );
}