LearnDash_REST_API::enabled( string $post_type = '' )
Check if REST is enabled for post type.
Description Description
Parameters Parameters
- $post_type
-
(Optional) Post Type slug to check.
Default value: ''
Return Return
(bool) true is enable. Otherwise false.
Source Source
File: includes/rest-api/class-ld-rest-api.php
Changelog Changelog
Version | Description |
---|---|
2.5.8 | Introduced. |