Register New Shortcodes
To register new shortcodes, developers should use the following code:
public function register_shortcodes() {
YourNewShortcodes::get_instance();
}
add_action( 'yaymail_register_shortcodes', 'register_shortcodes' );
This code attaches to the yaymail_register_shortcodes
action hook. It is used to register new shortcodes by passing the shortcodes instance.
Last updated
Was this helpful?