Skip to content

atmosphere_appview_host

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

Filters the base of AT Protocol appview web links.

The base is everything before the path: scheme, host, and an optional path prefix. The returned value may be a bare host ('deer.social'), a host with a path prefix ('something.social/atblue'), and may include a scheme and/or trailing slash — it is normalized before use, so appviews hosted on a subdomain or a subpath work cleanly. Defaults to 'bsky.app', the Bluesky appview. To rewrite the path itself (e.g. a custom route),

Auto-generated Example

/**
 * Filters the base of AT Protocol appview web links.
 * 
 * The base is everything before the path: scheme, host, and an optional
 * path prefix. The returned value may be a bare host ('deer.social'), a
 * host with a path prefix ('something.social/atblue'), and may include a
 * scheme and/or trailing slash — it is normalized before use, so appviews
 * hosted on a subdomain or a subpath work cleanly. Defaults to 'bsky.app',
 * the Bluesky appview. To rewrite the path itself (e.g. a custom route),.
 *
 * @param string $string_host_default_appview_host 
 * @param mixed $string 
 * @param array  $context 
 * @return string The filtered value.
 */
function my_atmosphere_appview_host_callback( string $string_host_default_appview_host, string, array $context ) {
    // Your code here.
    return $string_host_default_appview_host;
}
add_filter( 'atmosphere_appview_host', 'my_atmosphere_appview_host_callback', 10, 3 );

Parameters

  • string $string_host_default_appview_host Other variable names: $bsky_app
  • string $path Path being built, e.g. 'profile/'. Other variable names: $path
  • array $context Available parts: type, did, handle, rkey, tag.

Files

\apply_filters( 'atmosphere_appview_host', 'bsky.app', $path, $context )

← All Hooks

Clone this wiki locally