Can I fake being in the customizer?

Question

I’m trying to get a list of all theme mods / options currently registered. The normal way you can do it is to be inside the customizer, then $wp_customize->settings().

This will return a k,v pair of all the currenty registered theme mods that can, say, be saved.

If I inspect the global wp_customize outside the customizer itself, it’s null, as expected.

Is there a workaround for this?

0
Daniel Smith 3 years 2019-10-30T08:59:05-05:00 0 Answers 73 views 0

Leave an answer

Browse
Browse