You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actions[bot] edited this page Jul 8, 2026
·
2 revisions
Filters the transformers offered by the ?atproto preview endpoint.
?atproto=all. Entries that are not Base instances are ignored.
A later transformer sharing a built-in's NSID supersedes it, the
lets a registration override a default by NSID.
Auto-generated Example
/** * Filters the transformers offered by the `?atproto` preview endpoint. * * `?atproto=all`. Entries that are not `Base` instances are ignored. * A later transformer sharing a built-in's NSID supersedes it, the * lets a registration override a default by NSID. * * @param Atmosphere\Base[] $transformers * @param WP_Post $post * @return Atmosphere\Base[] The filtered value. */functionmy_atmosphere_atproto_preview_transformers_callback( Atmosphere\Base[] $transformers, WP_Post$post = null ) {
// Your code here.return$transformers;
}
add_filter( 'atmosphere_atproto_preview_transformers', 'my_atmosphere_atproto_preview_transformers_callback', 10, 2 );
Parameters
Atmosphere\Base[]$transformers Default transformers for the context.
WP_Post|null$post Queried post, or null on the front page.