Hooks::filter_register_shortcodes( array $shortcodes )

Register shortcodes.

See also


Top ↑

Parameters

$shortcodes

(array) (Required) An associative array of shortcodes in the shape [ <slug> => <class> ].


Top ↑

Return

(array)


Top ↑

Source

File: src/Tickets/Commerce/Hooks.php

	public function filter_register_shortcodes( array $shortcodes ) {
		$shortcodes[ Shortcodes\Checkout_Shortcode::get_wp_slug() ] = Shortcodes\Checkout_Shortcode::class;
		$shortcodes[ Shortcodes\Success_Shortcode::get_wp_slug() ]  = Shortcodes\Success_Shortcode::class;

		return $shortcodes;
	}

Top ↑

Changelog

Changelog
Version Description
5.1.6 Introduced.