Skip to content

atmosphere_transform_bsky_post

github-actions[bot] edited this page Jun 25, 2026 · 16 revisions

This filter is documented in Post::transform() above.

Auto-generated Example

/**
 * This filter is documented in Post::transform() above.
 *
 * @param array   $record 
 * @param WP_Post $post 
 * @param array   $context 
 * @return array The filtered value.
 */
function my_atmosphere_transform_bsky_post_callback( array $record, WP_Post $post, array $context ) {
    // Your code here.
    return $record;
}
add_filter( 'atmosphere_transform_bsky_post', 'my_atmosphere_transform_bsky_post_callback', 10, 3 );

Parameters

  • array $record Bsky post record.
  • WP_Post $post WordPress post.
  • array $context Additional composition context. Keys:

Files

\apply_filters(
			'atmosphere_transform_bsky_post',
			$record,
			$this->object,
			array(
				'strategy'        => $is_short ? 'short-form' : 'link-card',
				'thread_index'    => 0,
				'is_thread_reply' => false,
				'is_custom_text'  => $custom,
			)
		)
\apply_filters( 'atmosphere_transform_bsky_post', $record, $this->object, $context )
\apply_filters(
			'atmosphere_transform_bsky_post',
			$record,
			$this->object,
			array(
				'strategy'        => 'link-card',
				'thread_index'    => 0,
				'is_thread_reply' => false,
				'is_custom_text'  => false,
			)
		)

← All Hooks

Clone this wiki locally