-
Couldn't load subscription status.
- Fork 84
activitypub_add_site_block
github-actions[bot] edited this page Oct 1, 2025
·
2 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
* @return string The filtered value.
*/
function my_activitypub_add_site_block_callback( string $value, string $type ) {
// Your code here.
return $value;
}
add_filter( '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.