Browse: Home / Classes / LD_REST_Posts_Controller_V2 /


LD_REST_Posts_Controller_V2::rest_post_type_has_archive( string $post_type_slug = '' )

Checks if we are allowing the post type to be viewed without restrictions for an admin user.

Description #

The method name does not reflect the actual functionality, but is kept for backward compatibility.

Parameters #


(string) (Optional) The post type slug to check.

Default value: ''

Return #

(bool) true if has archive.

Source #

File: includes/rest-api/v2/class-ld-rest-posts-controller.php

Changelog #

Version Description
4.10.3 Removed the archive setting dependency.
3.3.0 Introduced.