Inventory_Presser_Shortcode_Vin

Inventory_Presser_Shortcode_Vin

Description Description

Creates a shortcode that outputs a vehicle identification number.


Top ↑

Source Source

File: includes/shortcode/class-shortcode-vin.php

class Inventory_Presser_Shortcode_Vin {

	/**
	 * Adds two shortcodes
	 *
	 * @return void
	 */
	public function add() {
		add_shortcode( 'invp-vin', 'invp_get_the_vin' );
		add_shortcode( 'invp_vin', 'invp_get_the_vin' );
	}

	/**
	 * Adds hooks that power the shortcode
	 *
	 * @return void
	 */
	public function add_hooks() {
		add_action( 'init', array( $this, 'add' ) );
	}
}

Top ↑

Methods Methods