gianism_should_assign_default_role

gianism_should_assign_default_role

Hook Type: filter

See hook in core

Displaying hooks found in version: gianism.5.2.2

apply_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 ) ) {