LLMS_REST_Posts_Controller::prepare_collection_query_args( WP_REST_Request $request )

Format query arguments to retrieve a collection of objects.


Parameters Parameters

$request

(WP_REST_Request) (Required) Full details about the request.


Top ↑

Return Return

(array|WP_Error)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php

409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
            'sanitize_callback' => array( $this, 'sanitize_post_statuses' ),
        );
    }
 
    return $query_params;
 
}
 
/**
 * Format query arguments to retrieve a collection of objects.
 *
 * @since 1.0.0-beta.7
 * @since 1.0.0-beta.12 Moved parameters to query args mapping into a different method.
 * @since 1.0.0-beta.18 Correctly return errors.
 *


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.7
1.0.0-beta.18 Correctly return errors.
1.0.0-beta.12 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.