> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaymail/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaymail/developer-zone/api/register-shortcodes/register-new-shortcodes.md).

# Register New Shortcodes

To register new shortcodes, developers should use the following code:

```php
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.
