Browse: Home / Hooks /

learndash_rest_wp_archive_viewable

apply_filters( 'learndash_rest_wp_archive_viewable',  bool $can_view_archive,  string $post_type,  WP_REST_Request $request )

Filter to allow access to the post type archive REST endpoint.


Description #


Parameters #

$can_view_archive

(bool) true/false.

$post_type

(string) The post type slug.

$request

(WP_REST_Request) Full details about the request.


Return #

(bool) true Return true to allow access.


Source #

File: includes/gutenberg/lib/class-ld-rest-gutenberg-posts-controller.php


Changelog #

Changelog
Version Description
3.6.0 Introduced.