Inventory_Presser_Allow_Inventory_As_Home_Page::hooks()
hooks
Contents
Description Description
Adds hooks
Return Return
(void)
Source Source
File: includes/class-allow-inventory-as-home-page.php
function hooks() { register_activation_hook( INVP_PLUGIN_FILE_PATH, array( 'Inventory_Presser_Allow_Inventory_As_Home_Page', 'create_pages' ) ); add_filter( 'parse_query', array( $this, 'hide_page_from_edit_list' ) ); add_action( 'pre_get_posts', array( $this, 'redirect_the_page' ) ); }
Expand full source code Collapse full source code View on Github