LearnDash_REST_API::enabled

LearnDash_REST_API::enabled( string $post_type = '' )

Check if REST is enabled for post type.


Description #


Parameters #

$post_type

(string) (Optional) Post Type slug to check.

Default value: ''


Return #

(bool) true is enable. Otherwise false.


Source #

File: includes/rest-api/class-ld-rest-api.php