Inventory_Presser_Admin_Options::hooks()
Adds hooks
Return Return
(void)
Source Source
File: includes/admin/class-admin-options.php
public function hooks() { add_action( 'admin_enqueue_scripts', array( $this, 'register_javascript' ) ); add_action( 'admin_init', array( $this, 'add_settings' ) ); add_action( 'admin_menu', array( $this, 'add_options_page' ) ); /** * When the option is updated, check if the additional listings pages * settings changed. If they have, flush permalinks. */ add_action( 'update_option_' . INVP::OPTION_NAME, array( $this, 'maybe_flush_permalinks' ), 10, 2 ); }
Expand full source code Collapse full source code View on Github