There was an error while loading. Please reload this page.
Fired when an actor is blocked.
/** * Fired when an actor is blocked. * * @param string $value * @param string $type * @param int $user_id * @return string The filtered value. */ function my_activitypub_add_user_block_callback( string $value, string $type, int $user_id ) { // Your code here. return $value; } add_filter( 'activitypub_add_user_block', 'my_activitypub_add_user_block_callback', 10, 3 );
string
$value
$type
int
$user_id
\do_action( 'activitypub_add_user_block', $value, $type, $user_id )
\do_action( 'activitypub_add_user_block', $value, Moderation::TYPE_ACTOR, $user_id )
← All Hooks