-
Notifications
You must be signed in to change notification settings - Fork 83
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.
/**
* 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 );-
string$warningThe warning HTML markup. -
WP_Comment$commentThe comment being replied to.
\apply_filters( 'activitypub_federation_warning', $warning, $comment )Follow @[email protected] for updates and news.