Browse: Home / Hooks /

learndash_rest_wp_archive_viewable

This hook has been deprecated.

apply_filters_deprecated( '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: src/deprecated/LD_REST_Posts_Gutenberg_Controller.php


Changelog #

Changelog
Version Description
4.10.3 This hook has been deprecated.
3.6.0 Introduced. This hook has been deprecated.