Skip to content

activitypub_default_blog_username

github-actions[bot] edited this page Jul 23, 2025 · 9 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

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

Parameters

  • $string_host_the_default_username Other variable names: $host

Files

apply_filters( 'activitypub_default_blog_username', $host )

Hooks

Users

Developers

Clone this wiki locally