Skip to content

atmosphere_should_publish_comments

github-actions[bot] edited this page Jul 15, 2026 · 1 revision

Filters whether local WordPress comments may be published to Bluesky as replies.

Runs last, so it has the final say over the stored setting — a host plugin can force outgoing writes off (or back on) regardless of the saved preference. The override is on effective behavior, not the option, so the stored preference survives untouched.

Auto-generated Example

/**
 * Filters whether local WordPress comments may be published to Bluesky as replies.
 * 
 * Runs last, so it has the final say over the stored setting — a host
 * plugin can force outgoing writes off (or back on) regardless of the
 * saved preference. The override is on effective behavior, not the
 * option, so the stored preference survives untouched.
 *
 * @param bool $enabled 
 * @return bool The filtered value.
 */
function my_atmosphere_should_publish_comments_callback( bool $enabled ) {
    // Your code here.
    return $enabled;
}
add_filter( 'atmosphere_should_publish_comments', 'my_atmosphere_should_publish_comments_callback' );

Parameters

  • bool $enabled Whether comment publishing is enabled.

Files

\apply_filters( 'atmosphere_should_publish_comments', $enabled )

← All Hooks

Clone this wiki locally