pings_open()

 

File: wp-includes/comment-template.php

function pings_open( $post_id = null ) {

	$_post = get_post( $post_id );

	$post_id = $_post ? $_post->ID : 0;
	$open    = ( 'open' == $_post->ping_status );

	/**
	 * Filters whether the current post is open for pings.
	 *
	 * @since 2.5.0
	 *
	 * @param bool $open    Whether the current post is open for pings.
	 * @param int  $post_id The post ID.
	 */
	return apply_filters( 'pings_open', $open, $post_id );
}

参数:pings_open( int|WP_Post $post_id = null )

有关此主题函数和类似主题函数的更多信息,请参阅主题开发人员手册中的条件标记文章。

Post ID or WP-柱 object. Default current post.

(bool)如果接受ping,则为真

$post_id

(int|WP_Post)
(Optional)
Post ID or WP_Post object. Default current post.

Default value: null

{acontent3}

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

16.67% (1) 次Baidu访问
16.67% (1) 次Google访问
66.67% (4) 次Sogou访问
  • 蜘蛛:Baidu,1次,更新时间:2019-04-28 12:08:35
  • 蜘蛛:Google,1次,更新时间:2019-05-11 04:40:56
  • 蜘蛛:Sogou,4次,更新时间:2019-05-13 01:30:34

参与评论