wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_the_permalink › WordPress Function

Od3.9.0
Przestarzałyn/a
get_the_permalink ( $post = 0, $leavename = false )
Parametry: (2)
  • (int|WP_Post) $post Optional. Post ID or post object. Default is the global `$post`.
    Wymagane: Nie
    Domyślny:
  • (bool) $leavename Optional. Whether to keep post name or page name. Default false.
    Wymagane: Nie
    Domyślny: false
Zobacz:
Powrót:
  • (string|false) The permalink URL. False if the post does not exist.
Zdefiniowane na:
Codex:

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

This function is an alias for get_permalink().


Źródło

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