Skip to content

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.

Auto-generated Example

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

Parameters

  • string|false|null $result The import result. Return a URL string to short-circuit,
  • string $emoji_url The remote emoji URL being imported.
  • string|null $updated The remote emoji's updated timestamp. Other variable names: $updated

Files

\apply_filters( 'activitypub_pre_import_emoji', null, $emoji_url, $updated )

← All Hooks

Users

Developers

Clone this wiki locally