gianism_should_assign_default_role
gianism_should_assign_default_role
Appears in: gianism.4.3.0, gianism.4.3.1, gianism.4.3.2, gianism.4.3.3, gianism.4.3.4, gianism.4.4.0, gianism.5.0.0, gianism.5.0.2, gianism.5.1.0, gianism.5.2.2
Hook Type: filter
Displaying hooks found in version: gianism.5.2.2apply_filters('gianism_should_assign_default_role') is found 1 times:
- /app/Gianism/Controller/Network.php line 61
if ( ! $blog_id ) { // Do nothing. return; } $should_assign_default_role = apply_filters( 'gianism_should_assign_default_role', $this->option->is_network_activated() ); if ( ! $should_assign_default_role ) { return; } // Get blog role for current user. $user = new \WP_User( $user_id, '', $blog_id ); if ( empty( $user->roles ) ) {