Browse: Home / Constants /

LEARNDASH_BLOCK_WORDPRESS_CPT_ROUTES

define( 'LEARNDASH_BLOCK_WORDPRESS_CPT_ROUTES',  bool $value )

Define LearnDash LMS – Enable block access to default WordPress CPT routes.


Description #

Logic added to prevent access to the automatic routes created as part of WP core for Gutenberg enabled custom post types. This new logic will prevent visibility read access if used is not authenticated or does not have update capabilities.


Parameters #

$value

(bool) (Required) Default is true.


Source #

File: learndash-scalar-constants.php


Changelog #

Changelog
Version Description
3.2.0 Introduced.