Hooks::filter_register_shortcodes( array $shortcodes )
Register shortcodes.
Contents
See also
Parameters
- $shortcodes
-
(array) (Required) An associative array of shortcodes in the shape
[ <slug> => <class> ].
Return
(array)
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;
}
Changelog
| Version | Description |
|---|---|
| 5.1.6 | Introduced. |