Skip to content

activitypub_federation_warning

github-actions[bot] edited this page Jan 26, 2026 · 1 revision

Filters the warning message shown to logged-in users without ActivityPub capability.

Auto-generated Example

/**
 * Filters the warning message shown to logged-in users without ActivityPub capability.
 *
 * @param string     $warning 
 * @param WP_Comment $comment 
 * @return string The filtered value.
 */
function my_activitypub_federation_warning_callback( string $warning, WP_Comment $comment ) {
    // Your code here.
    return $warning;
}
add_filter( 'activitypub_federation_warning', 'my_activitypub_federation_warning_callback', 10, 2 );

Parameters

  • string $warning The warning HTML markup.
  • WP_Comment $comment The comment being replied to.

Files

\apply_filters( 'activitypub_federation_warning', $warning, $comment )

← All Hooks

Users

Developers

Clone this wiki locally