Skip to content

atmosphere_transform_comment

github-actions[bot] edited this page May 19, 2026 · 3 revisions

Filters the app.bsky.feed.post comment reply record before publishing.

Filters that return a non-array fall back to the pre-filter record.

Auto-generated Example

/**
 * Filters the app.bsky.feed.post comment reply record before publishing.
 * 
 * Filters that return a non-array fall back to the pre-filter
 * record.
 *
 * @param array      $record 
 * @param WP_Comment $comment 
 * @return array The filtered value.
 */
function my_atmosphere_transform_comment_callback( array $record, WP_Comment $comment ) {
    // Your code here.
    return $record;
}
add_filter( 'atmosphere_transform_comment', 'my_atmosphere_transform_comment_callback', 10, 2 );

Parameters

  • array $record Bsky post record.
  • WP_Comment $comment WordPress comment.

Files

\apply_filters( 'atmosphere_transform_comment', $record, $comment )

← All Hooks

Clone this wiki locally