bluenet
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Crontrol] Dynamically Creating PHP Crons with “Security Hardening”I re-read your initial response again. While this is in context of the site, but I’m accessing *.php files using wp_remote_get(). Using your example and a few alternatives, I’m unable to get the hash to match and continue to receive the “needs attention” error. Is there a way to generate a hash for local PHP files?
$php = "wp_remote_get('https://localdomain.com/test.php');"; $args = array( array( 'code' => $php, 'name' => 'My event name', 'hash' => wp_hash( $php ), ) ); wp_schedule_event( ..., $args );Thanks for your time. I appreciate it.
Forum: Plugins
In reply to: [WP Crontrol] Dynamically Creating PHP Crons with “Security Hardening”Hi John – On the github link, I noticed your array keys “code” and “hash” use the same variable ($cr->hookcode). Does the hash have to be hashed version of the code? or could the hash be the hashed “name” element? or any other unique text.
Thoughts?
Thanks for the reply. I’ll try and update our WooCommerce version.
NOTE: The plugin docs suggest a minimum WC version of 3.0… so I thought I was good there (WC requires at least: 3.0)