wpseek.com
A WordPress-centric search engine for devs and theme authors



post_permalink › WordPress Function

Since1.0.0
Deprecated4.4.0
post_permalink ( $post = 0 )
Parameters:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.
    Required: No
    Default:
See:
Returns:
  • (string|false)
Defined at:
Codex:

Retrieve permalink from post ID.



Source

function post_permalink( $post = 0 ) {
	_deprecated_function( __FUNCTION__, '4.4.0', 'get_permalink()' );

	return get_permalink( $post );
}