A WordPress-centric search engine for devs and theme authors



post_permalink ›

Since1.0.0
Deprecated4.4.0
post_permalink ( $post_id = 0 )
Parameters:
  • (int|WP_Post) $post_id 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_id = 0 ) {
	_deprecated_function( __FUNCTION__, '4.4.0', 'get_permalink()' );

	return get_permalink( $post_id );
}