Crons
-
Hi @supportadtribes,
I just wanted to make a suggestion in regards to allowing server crons to trigger the updating of the feeds.
In under your woocommerce-sea.php script file, specifically under the
woosea_project_refresh
function, if you were to do the following:
– Remove:check_ajax_referer( 'woosea_ajax_nonce', 'security' );
– Remove the role check at:if ( array_intersect( $allowed_roles, $user->roles ) )
It would then allow the user to trigger the cron via server automated crons in such a way: https://example.com.au/wp-admin/admin-ajax.php?action=woosea_project_refresh&project_hash=O3IfGutYiiwzd1W2YaEtN948hfwR12Cm&_wp_http_referer=/wp-admin/admin.php?page=woosea_manage_feed
Just an idea.
Thank you
- You must be logged in to reply to this topic.