Register a new path for the templates storage. Use this function on the ‘init‘ action. If a template is located in the storage, and in the theme, priority is with the theme. If the template is an override of the default template, storages registered using this function have priority.
This function must pass the path to the storage.
- path: It can be anywhere inside the WordPress wp-content directory, and it has to be provided via a full path. If the path is invalid (doesn’t exist), it will not be added to the storages.