-
Notifications
You must be signed in to change notification settings - Fork 81
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.
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' );
-
$string_host_the_default_username
Other variable names:$host
apply_filters( 'activitypub_default_blog_username', $host )
Follow @[email protected] for updates and news.