Advanced box rules

The plugin comes with a very basic way of setting rules for where (on which pages) a box should be loader.

727

However, sometimes you just need a little more than this. For this, there's the "manual condition" option which basically lets you use any piece of PHP for your condition.

Let's say we wanted to show a box on every page except for our "contact" and "checkout" page. The following rule value would do just that.

! is_page( array( 'contact', 'checkout' ) )

You'll notice the is_page function, which is a default WordPress function for checking whether the current request is for a certain page.

A full list of available conditional checks can be found here.