Howdy developer! Sometimes it might be the case that you need to execute actions only if the user is in the customization context => using the WordPress customizer. Here’s a quick snippet to check that. I use the following condition statement, checking if the $_REQUEST[‘wp_customize’] is defined to verify that : […]
Target: WordPress customizer
1 post