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
<?php | |
/** | |
* WordPress ACF Color Palette | |
* This pulls the colors from theme.json and adds them to the ACF color picker with fallbacks. | |
*/ | |
add_action('acf/input/admin_footer', 'json_acf_color_palette'); | |
function json_acf_color_palette() { | |
// Ensure this runs only in admin and ACF is active |