apply_filters( 'learndash_rest_api_enabled', boolean $enabled , string $post_type )
Filters whether the LearnDash REST API is enabled or not.
Description Description
Parameters Parameters
- $enabled
-
Whether the REST API is enabled or not.
- $post_type
-
The slug of the post type to be checked.
Source Source
File: includes/rest-api/class-ld-rest-api.php