Skip to content

atmosphere_link_mention

github-actions[bot] edited this page Jul 7, 2026 · 1 revision

The display linkifier does no network lookup, so by default every syntactically valid handle is linked and the appview resolves it. Return false to leave a specific handle as plain text — e.g. to gate on a cached existence check or an allowlist of known accounts.

Auto-generated Example

/**
 * The display linkifier does no network lookup, so by default
 * every syntactically valid handle is linked and the appview
 * resolves it. Return false to leave a specific handle as plain
 * text — e.g. to gate on a cached existence check or an
 * allowlist of known accounts.
 *
 * @param bool   $should_link 
 * @param string $handle 
 * @return bool The filtered value.
 */
function my_atmosphere_link_mention_callback( bool $should_link, string $handle ) {
    // Your code here.
    return $should_link;
}
add_filter( 'atmosphere_link_mention', 'my_atmosphere_link_mention_callback', 10, 2 );

Parameters

  • bool $should_link Whether to link the handle. Default true.
  • string $handle The bare handle (no leading @).

Files

\apply_filters( 'atmosphere_link_mention', true, $handle )

← All Hooks

Clone this wiki locally