-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_pre_import_emoji
github-actions[bot] edited this page Jan 23, 2026
·
1 revision
Filters the result of emoji import before processing.
Allows short-circuiting the emoji import, useful for testing.
false to indicate failure, or null to proceed normally.
/**
* Filters the result of emoji import before processing.
*
* Allows short-circuiting the emoji import, useful for testing.
*
* false to indicate failure, or null to proceed normally.
*
* @param string|false $result
* @param string $emoji_url
* @param mixed $string|null
* @return string|false The filtered value.
*/
function my_activitypub_pre_import_emoji_callback( string|false $result = null, string $emoji_url, string|null ) {
// Your code here.
return null;
}
add_filter( 'activitypub_pre_import_emoji', 'my_activitypub_pre_import_emoji_callback', 10, 3 );-
string|false|null$resultThe import result. Return a URL string to short-circuit, -
string$emoji_urlThe remote emoji URL being imported. -
string|null$updated The remote emoji's updated timestamp. Other variable names:$updated
\apply_filters( 'activitypub_pre_import_emoji', null, $emoji_url, $updated )Follow @[email protected] for updates and news.