Skip to content

activitypub_add_site_block

github-actions[bot] edited this page Aug 26, 2025 · 1 revision

Fired when a domain or keyword is blocked site-wide.

Auto-generated Example

/**
 * 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 );

Parameters

  • string $value The blocked domain or keyword.
  • string $type The block type (actor, domain, keyword).

Files

\do_action( 'activitypub_add_site_block', $value, $type )

← All Hooks

Users

Developers

Clone this wiki locally