get( 'search' ) ); $records = [ 'translator' => \WPML_Translator_Records::class, 'manager' => \WPML_Translation_Manager_Records::class, ]; return Either::of( $data->get( 'role' ) ) ->filter( Lst::includes( Fns::__, Obj::keys( $records ) ) ) ->map( Obj::prop( Fns::__, $records ) ) ->map( Fns::make() ) ->map( invoke( 'search_for_users_without_capability' )->with( $search, self::USER_SEARCH_LIMIT ) ); } }