boxzilla-wp
boxzilla-wp copied to clipboard
flush_rules() is not called when Boxzilla box is published via a scheduled date
If a boxzilla box is set to be published at a future date, the Admin->flush_rules method doesn’t get called at publish time, and the box never gets shown until it is saved manually in the admin interface again.
I have solved this on our site by using the transition_post_status hook and calling $boxzilla[‘admin’]->flush_rules($post_id) when conditions match, but it would be great if this was solved in the plugin itself.
reported here: https://wordpress.org/support/topic/flush_rules-is-not-called-on-auto-publish/