boxzilla-wp icon indicating copy to clipboard operation
boxzilla-wp copied to clipboard

flush_rules() is not called when Boxzilla box is published via a scheduled date

Open arnelap opened this issue 2 years ago • 0 comments

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/

arnelap avatar Sep 06 '22 19:09 arnelap