Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have some checkboxes to select where can I display my plugin and I save in db in this format:

Show popup in this pages:

x Article (Public)

x Pages (Public)

x File (Public)

x Revisions (Not public)

Those settings I save in db in this format: So if i CHECKED to show popup in post and pages i have


How to add some filters or to check when to display content? Something like:

if(in_array(current_page, my_array_with_accepted_pages)) show something

or just add some filters and the plugin will now where to display the content.

share|improve this question
From your question I am fuzzy on how your data is stored and where precisely you want to display it. Could you elaborate a bit? – Rarst May 12 '13 at 13:41
I updated the post, can you see if you understand? – Sebastian Corneliu Vîrlan May 13 '13 at 10:58

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.