Inventory_Presser_Shortcode_Hours_Today::add_hooks()

hooks

Description Description

Adds hooks that power the shortcode and attach it to other features


Top ↑

Return Return

(void)


Top ↑

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 );
	}