Custom_Layouts_Cpt
Class Custom_Layouts_Cpt
Source
File: includes/admin/custom_layouts_cpt.php
Expand full source code Collapse full source code View on Github
Methods
- add_role_caps — Add capabilities for administrators and editors to create a custom layout.
- change_cpt_label — Change CPT label and position to be under the last page registered inside Neve or TPC.
- get_conditional_headers — Get the conditional headers.
- get_custom_layouts — Get the custom layouts.
- get_posts — Get all the custom layouts post in array under two keys
- init — Initialize the Custom Layouts CPT class.
- recount_posts — Filter the count.
- register_custom_post_type — Register Custom Layouts post type.
- remove_conditional_headers — Remove conditional headers from the post list table in the admin.