This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This filter allows you to add custom shortcodes to the message system | |
| * $shortcodes is an array of the available shortcodes for the current library | |
| * $lib is the current shortcode library | |
| */ | |
| function ee_register_new_custom_messages_shortcodes( $shortcodes, EE_Shortcodes $lib ) { | |
| //Add a shortcode to be used with the EE Datetimes within messages | |
| if ( $lib instanceof EE_Datetime_Shortcodes ) { | |
| //Add your shortcode to the add as the key, the value should be a description of the shortcode. | |
| $shortcodes['[GOOGLE_CAL_LINK_*]'] = _('Google Calendar link'); |
OlderNewer