-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_add_site_block
github-actions[bot] edited this page Nov 14, 2025
·
3 revisions
Fired when a domain or keyword is blocked site-wide.
/**
* Fired when a domain or keyword is blocked site-wide.
*
* @param string $value
* @param string $type
*/
function my_activitypub_add_site_block_callback( string $value, string $type ) {
// Your code here.
}
add_action( 'activitypub_add_site_block', 'my_activitypub_add_site_block_callback', 10, 2 );-
string$valueThe blocked domain or keyword. -
string$typeThe block type (actor, domain, keyword).
\do_action( 'activitypub_add_site_block', $value, $type )Follow @[email protected] for updates and news.