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 function is used to register Advanced Custom Fields (ACF) blocks | |
* from a specific directory. This can be useful when you have a lot of | |
* ACF blocks and want to keep your codebase clean and organized. | |
* | |
* This script assumes that each ACF block's code resides in its own folder under the | |
* /template-parts/blocks/ directory relative to where the script is located (__DIR__). | |
*/ | |
function register_acf_blocks() { |
OlderNewer