-
-
Notifications
You must be signed in to change notification settings - Fork 29
webmentions_open
github-actions[bot] edited this page Jan 3, 2026
·
1 revision
Filters whether the current post is open for webmentions.
/**
* Filters whether the current post is open for webmentions.
*
* @param bool $open
* @param int $post_id
* @return bool The filtered value.
*/
function my_webmentions_open_callback( bool $open, int $post_id ) {
// Your code here.
return $open;
}
add_filter( 'webmentions_open', 'my_webmentions_open_callback', 10, 2 );-
bool$openWhether the current post is open. -
int$post_idThe post ID.
apply_filters( 'webmentions_open', $open, $post_id )