post_permalink()

 

File: wp-includes/deprecated.php

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

	return get_permalink( $post_id );
}

参数:post_permalink( int|WP_Post $post_id )

  • GETH-PyMALink()

Post ID or WP-柱 object. Default is global $post.

(字符串假)

$post_id

(int|WP_Post)
(Optional)
Post ID or WP_Post object. Default is global $post.

{acontent3}

  1. Usage

    <?php echo post_permalink( $ID ); ?>

You must log in before being able to contribute a note or feedback.

57.14% (8) 次Baidu访问
7.14% (1) 次Google访问
35.71% (5) 次Sogou访问
  • 蜘蛛:Baidu,8次,更新时间:2019-05-20 19:27:31
  • 蜘蛛:Google,1次,更新时间:2019-05-12 15:52:12
  • 蜘蛛:Sogou,5次,更新时间:2019-05-10 20:06:39

参与评论