Skip to content

atmosphere_should_publish_comment

github-actions[bot] edited this page Jul 15, 2026 · 25 revisions

Filters whether a comment should be published to Bluesky.

Auto-generated Example

/**
 * Filters whether a comment should be published to Bluesky.
 *
 * @param bool       $should 
 * @param WP_Comment $comment 
 * @return bool The filtered value.
 */
function my_atmosphere_should_publish_comment_callback( bool $should, WP_Comment $comment ) {
    // Your code here.
    return $should;
}
add_filter( 'atmosphere_should_publish_comment', 'my_atmosphere_should_publish_comment_callback', 10, 2 );

Parameters

  • bool $should Whether to publish.
  • WP_Comment $comment Comment object.

Files

\apply_filters( 'atmosphere_should_publish_comment', $should, $comment )

← All Hooks

Clone this wiki locally