-
Notifications
You must be signed in to change notification settings - Fork 85
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).
/**
* 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 );-
bool$validWhether the URL is valid. -
string$valueThe emoji src URL.
\apply_filters( 'activitypub_validate_emoji_src', $allow_remote, $value )Follow @[email protected] for updates and news.