-
Notifications
You must be signed in to change notification settings - Fork 1
atmosphere_appview_url
github-actions[bot] edited this page Jun 25, 2026
·
2 revisions
Filters the fully assembled AT Protocol appview web URL.
Use this to rewrite the entire URL — including the route, e.g. '/account/' instead of '/profile/', or a custom hashtag route — by rebuilding it from the parts in $context. Return a complete URL; it is escaped by the caller, not here.
/**
* Filters the fully assembled AT Protocol appview web URL.
*
* Use this to rewrite the entire URL — including the route, e.g.
* '/account/<did>' instead of '/profile/<did>', or a custom hashtag
* route — by rebuilding it from the parts in $context. Return a complete
* URL; it is escaped by the caller, not here.
*
* @param string $string
* @param mixed $string
* @param array $context
* @return string The filtered value.
*/
function my_atmosphere_appview_url_callback( string string, string, array $context ) {
// Your code here.
return string;
}
add_filter( 'atmosphere_appview_url', 'my_atmosphere_appview_url_callback', 10, 3 );-
stringstring$url Assembled URL, e.g. 'https://bsky.app/profile/'. Other variable names:$url -
string$path Path that was appended, e.g. 'profile/'. Other variable names:$path -
array$contextAvailable parts: type, did, handle, rkey, tag.
\apply_filters( 'atmosphere_appview_url', $url, $path, $context )