$wp_customize customizer_preview_init not firing inside javascript

The issue in this case has to do with how I added the customize.php script. I was loading it inside an is_admin() check (see updated question above where I have included that code branch).

After reading Otto’s post, I realized that the customizer hook does not fire in this context.

Leave a Comment