Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_the_permalink ›

Desde3.9.0
Obsoleton/a
get_the_permalink ( $post = 0, $leavename = false )
Parâmetros: (2)
  • (int|WP_Post) $post Optional. Post ID or post object. Default is the global `$post`.
    Required: No
    Padrão:
  • (bool) $leavename Optional. Whether to keep post name or page name. Default false.
    Required: No
    Padrão: false
Ver:
Retorna:
  • (string|false) The permalink URL or false if post does not exist.
Definido em:
Codex:

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

This function is an alias for get_permalink().



Fonte

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