I have a few custom WP_Customize_Control classes that are shown within the standard WordPress Customizer area. These are working fine.

Is it possible to pull some of these out of the customizer and show them in a dedicated plugin page?

I don't need the live preview etc.. just need the customizer element to function and run the sanitize_callback and save any changed settings.



I would say it is possible, but it hasn't been tried before, as far as I know. You would need to instantiate the WP_Customize_Manager but likely do some unhooking/rehooking of some of the methods.

  • Cheers. It was just quicker to re-create the controls I needed stand alone without the Customize classes. Maybe next project I'll have more time to play with re-using the code. – dtbaker Dec 11 '15 at 10:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.