Skip to content

activitypub_default_blog_username

github-actions[bot] edited this page Jul 30, 2025 · 3 revisions

Filters the default blog username.

This filter allows developers to modify the default username that is generated for the blog, which by default is the site's host name without the 'www.' prefix.

Auto-generated Example

function my_activitypub_default_blog_username_callback( $string_host_the_default_username ) {
    // Your code here.
    return $string_host_the_default_username;
}
add_filter( 'activitypub_default_blog_username', 'my_activitypub_default_blog_username_callback' );

Parameters

  • $string_host_the_default_username Other variable names: $host

Files

apply_filters( 'activitypub_default_blog_username', $host )

← All Hooks

Users

Developers

Clone this wiki locally