-
Notifications
You must be signed in to change notification settings - Fork 1
atmosphere_transform_bsky_post
github-actions[bot] edited this page Jul 7, 2026
·
16 revisions
This filter is documented in Post::transform() above.
/**
* 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 );-
array$recordBsky post record. -
WP_Post$postWordPress post. -
array$contextAdditional composition context. Keys:
\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,
)
)