Browse: Home / Classes / LearnDash_REST_API /

LearnDash_REST_API::check_registered_post_type

LearnDash_REST_API::check_registered_post_type()

Check that the LearnDash custom post types are registered.


Description #

This is to prevent some instances where the rest_init is called too early.


Return #

(bool) true if all post types are registered. Otherwise false.


Source #

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


Changelog #

Changelog
Version Description
4.2.0 Introduced.