Skip to content

activitypub_validate_emoji_src

github-actions[bot] edited this page Feb 11, 2026 · 2 revisions

Filters whether a remote emoji URL is valid.

Use this filter to explicitly allow remote emoji URLs when needed (e.g., for CDN proxying).

Auto-generated Example

/**
 * Filters whether a remote emoji URL is valid.
 * 
 * Use this filter to explicitly allow remote emoji URLs when needed
 * (e.g., for CDN proxying).
 *
 * @param bool   $valid 
 * @param string $value 
 * @return bool The filtered value.
 */
function my_activitypub_validate_emoji_src_callback( bool $valid, string $value ) {
    // Your code here.
    return $valid;
}
add_filter( 'activitypub_validate_emoji_src', 'my_activitypub_validate_emoji_src_callback', 10, 2 );

Parameters

  • bool $valid Whether the URL is valid.
  • string $value The emoji src URL.

Files

\apply_filters( 'activitypub_validate_emoji_src', $allow_remote, $value )

← All Hooks

Users

Developers

Clone this wiki locally