Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Author Link on Multisite network


  • ritz082
    Participant

    @ritz082

    I have Multisite with Buddypress on Subsite.
    I want to link author profile from all sites to buddypress author profile on subsite.
    I tried to use this https://gist.github.com/dcavins/94e4989cad997d0553e8e5db37f30b40

    add_filter( ‘author_link’, ‘dc_bp_filter_author_link’, 10, 2 );
    function dc_bp_filter_author_link( $link, $author_id ) {
    return bp_core_get_user_domain( $author_id );
    }

    BUT this needs to have buddypress active on all sites.

  • You must be logged in to reply to this topic.
Skip to toolbar