Skip to content

atmosphere_appview_url

github-actions[bot] edited this page Jul 14, 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.

Auto-generated Example

/**
 * 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 );

Parameters

  • string string $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 $context Available parts: type, did, handle, rkey, tag.

Files

\apply_filters( 'atmosphere_appview_url', $url, $path, $context )

← All Hooks

Clone this wiki locally