W3cubDocs

/WordPress

apply_filters( ‘pings_open’, bool $pings_open, int $post_id )

Filters whether the current post is open for pings.

Parameters

$pings_openbool
Whether the current post is open for pings.
$post_idint
The post ID.

Source

return apply_filters( 'pings_open', $pings_open, $post_id );

Changelog

Version Description
2.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pings_open