Browse: Home / Constants /

LEARNDASH_BLOCK_WORDPRESS_CPT_ROUTES

This constant has been deprecated. We always want to have a good level of security. It can always be modified by custom code if needed instead.

define( 'LEARNDASH_BLOCK_WORDPRESS_CPT_ROUTES',  bool $value )

Define LearnDash LMS – Enable LearnDash additional restrictions for the LD WordPress CPT routes (wp/v2/)


Description #

If enabled, the LearnDash REST API controllers will add additional permission checks to the default WordPress REST API controllers.

If disabled, the default WordPress REST API controllers logic will be used, which has less restrictions by default.


Parameters #

$value

(bool) (Required) Default is true.


Source #

File: learndash-scalar-constants.php


Changelog #

Changelog
Version Description
4.10.3 We always want to have a good level of security. It can always be modified by custom code if needed.
3.2.0 Introduced. This constant has been deprecated. We always want to have a good level of security. It can always be modified by custom code if needed instead.