Post Read restriction and Cron job
-
Assigning Read restriction to a post creates some issues with WP Cron and Woocommerce Action Scheduler. Crons run as no user (user_id = 0), therefore, any code run by Crons that tries to access posts restricted by group will not be able to do so.
Ideally, Crons should run as a user and we would assign groups to that user, but WordPress doesn’t support that.
Would it be possible disable the restriction for a cron as most lilkly the group read restriction does not apply (this could be a setting).
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Post Read restriction and Cron job’ is closed to new replies.