-
Notifications
You must be signed in to change notification settings - Fork 1
atmosphere_appview_host
github-actions[bot] edited this page Jul 14, 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),
/**
* 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 );-
string$string_host_default_appview_hostOther variable names:$bsky_app -
string$path Path being built, e.g. 'profile/'. Other variable names:$path -
array$contextAvailable parts: type, did, handle, rkey, tag.
\apply_filters( 'atmosphere_appview_host', 'bsky.app', $path, $context )