wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_the_permalink › WordPress Function

Depuis3.9.0
Dépréciéen/a
get_the_permalink ( $post = 0, $leavename = false )
Paramètres: (2)
  • (int|WP_Post) $post Optional. Post ID or post object. Default is the global `$post`.
    Requis: Non
    Défaut:
  • (bool) $leavename Optional. Whether to keep post name or page name. Default false.
    Requis: Non
    Défaut: false
Voir:
Retourne:
  • (string|false) The permalink URL. False if the post does not exist.
Défini(e) dans:
Codex:

Retrieves the full permalink for the current post or post ID.

This function is an alias for get_permalink().


Source

function get_the_permalink( $post = 0, $leavename = false ) {
	return get_permalink( $post, $leavename );
}