Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

In this post:

How Can A Widget With Only One Instance Be Defined?

... @OneTrickPony says:

another way might be to set the _multiwidget option to 0. Like $settings = get_option("widget_text"); $settings['_multiwidget'] = 0; update_option("widget_text", $settings);

I'd like to set the _multiwidget option to 0 in my custom sidebar widget class, but I'm not sure where to put the above code.

Could anyone provide a complete example of how/where to use the above code in a sidebar widget class (like the class found on the docs page)?

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.