We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Allow plugins to enable/disable users for ActivityPub.
/** * Allow plugins to enable/disable users for ActivityPub. * * @param Activitypub\boolean $enabled * @param int $user_id * @return Activitypub\boolean The filtered value. */ function my_activitypub_user_can_activitypub_callback( Activitypub\boolean $enabled, int $user_id ) { // Your code here. return $enabled; } add_filter( 'activitypub_user_can_activitypub', 'my_activitypub_user_can_activitypub_callback', 10, 2 );
Activitypub\boolean
$enabled
int
$user_id
\apply_filters( 'activitypub_user_can_activitypub', $enabled, $user_id )
← All Hooks