New answers tagged

0 votes
Accepted

Why does customize_register only load inside of functions.php for me?

In the second version you're running your code as a wp_enqueue_scripts hook. This is for frontend scripts and isn't called in the admin site. For that you need to hook admin_enqueue_scripts as well: ...
Rup's user avatar
  • 4,157

Top 50 recent answers are included