Skip to content
github-actions[bot] edited this page Jan 3, 2026 · 1 revision

Filters whether the current post is open for webmentions.

Auto-generated Example

/**
 * 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 );

Parameters

  • bool $open Whether the current post is open.
  • int $post_id The post ID.

Files

apply_filters( 'webmentions_open', $open, $post_id )

← All Hooks

Clone this wiki locally