Un motore di ricerca WordPress per sviluppatori e autori di temi



get_the_permalink ›

Da3.9.0
Deprecaton/a
get_the_permalink ( $post = 0, $leavename = false )
Parametri: (2)
  • (int|WP_Post) $post Optional. Post ID or post object. Default is the global `$post`.
    Richiesto: No
    Default:
  • (bool) $leavename Optional. Whether to keep post name or page name. Default false.
    Richiesto: No
    Default: false
Vedi:
Ritorna:
  • (string|false) The permalink URL or false if post does not exist.
Definito a:
Codex:

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

This function is an alias for get_permalink().



Sorgenti

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