Browse: Home / Classes / LearnDash_Course_Reviews_REST /

LearnDash_Course_Reviews_REST::permission_callback_filterable

LearnDash_Course_Reviews_REST::permission_callback_filterable( WP_REST_Request $request,  string $method )

This allows 3rd party integrations to force API calls to fail under certain conditions.


Description #

This will force a 403, so it should only be used when you’re trying to prevent abuse by someone who is being sneaky by attempting to run API calls for something they do not have access to.


Parameters #

$request

(<span class="WP_REST_Request">WP_REST_Request) (Required) Request object.

$method

(string) (Required) Method Name.


Return #

(bool) Whether this API call should be allowed or not.


Source #

File: includes/course-reviews/core/class-learndash-course-reviews-rest.php


Changelog #

Changelog
Version Description
4.25.1 Introduced.