Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

gdkob_register_storage($path)

Description

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.

Parameters

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.
0
0
278
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply