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
a:2:{i:0;s:4:"post";i:1;s:4:"page";}
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.