LLMS_Blocks_Post_Types::enable_rest( array $data )
Enable the rest API for custom post types & taxonomies
Description Description
Parameters Parameters
- $data
-
(array) (Required) post type / taxonomy data.
Return Return
(array)
Source Source
File: vendor/lifterlms/lifterlms-blocks/includes/class-llms-blocks-post-types.php
public function enable_rest( $data ) { $data['show_in_rest'] = true; return $data; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |