Inventory_Presser_Admin_Location_Meta::add_hooks()
Adds hooks.
Return Return
(void)
Source Source
File: includes/admin/class-admin-location-meta.php
public function add_hooks() { // location taxonomy admin actions. add_action( 'location_add_form_fields', array( $this, 'add_location_fields' ) ); add_action( 'location_edit_form_fields', array( $this, 'edit_location_field' ), 10, 1 ); add_action( 'created_location', array( $this, 'save_location_meta' ), 10, 1 ); add_action( 'edited_location', array( $this, 'save_location_meta' ), 10, 1 ); // Load JavaScript for timepickers, draggable and repeating fields. add_action( 'admin_enqueue_scripts', array( $this, 'scripts_and_styles' ) ); }
Expand full source codeCollapse full source codeView on Github