Inventory_Presser_Shortcode_Hours_Today::add_hooks()
hooks
On This Page
Description Description
Adds hooks that power the shortcode and attach it to other features
Return Return
(void)
Source Source
File: includes/shortcode/class-shortcode-hours-today.php
public function add_hooks() { add_action( 'init', array( $this, 'add' ) ); // add hours today near the "this vehicle is located at" sentence add_filter( 'invp_vehicle_location_sentence', array( $this, 'append_shortcode' ) ); // add hours today in the Hours widget add_filter( 'invp_hours_title', array( $this, 'append_hours_today_to_hours_widget' ), 10, 2 ); }
Expand full source codeCollapse full source codeView on Github