Inventory_Presser_Allow_Inventory_As_Home_Page::hide_page_from_edit_list( WP_Query $query )
hide_page_from_edit_list
Contents
Description Description
Prevents the page this plugin creates from showing up in the list of pages while editing in the dashboard. We need a page to exist in order to allow users to choose it as their home page, but we don't want them to see an actual page in the list, because the Inventory listing is not a page, it's a custom post type archive.
Parameters Parameters
- $query
-
(Required) An instance of the WP_Query class
Return Return
(void)
Source Source
File: includes/class-allow-inventory-as-home-page.php
Expand full source code Collapse full source code View on Github