Huge cron option_value into wp_options table

This could be caused by many different things, as well as a result of a broken cron setup, where actions are being scheduled, but never run. The best way forward is to try and understand what is actually being scheduled or rescheduled, what are the action names? If you can find the action names, you’ll … Read more

couldn’t connect to host – wp-cron.php?doing_wp_cron

You should open a support ticket with your host, as it’s probably related to their environment. From the error, it sounds to me like they might be blocking curl in their environment, probably for security reasons. They may be able to unblock it, or you may need to find an alternative.

Sending emails to separate accounts using a for loop

For whatever reason, this part: for ($z = 1; $z <= $Number_of_Categories; $z++) is the offender. even though $Number_of_Categories was defined above where it is used, the value wasn’t holding. I had to build a function instead, and do this: function get_Number_of_Categories(){ return “2”; } for ($z = 1; $z <= get_Number_of_Categories(); $z++) once I … Read more

Schedule Removal of Menu Page and Shortcode

First, unless zeeshan is actually a function inside a class, do not use array($this,’zeeshan’). (If it is in a class, nevermind.) Second, even if this event is firing – it may or may not be? – the way you have it is only going to affect the current pageload when triggered, so is rather pointless. … Read more

Schedule reminder at exact time

I second SamuelElh comment and YES cron is the way to go. BUT, which cron? The WordPress implementation of cron is a tricky implementation. How? Actually it is a cron fired by the visits your site gets, both (back-end and front-end), so, if your site is not getting a visitor every 10 minutes as suggested … Read more

Cron Job Scheduling in wordpress

You an use following: add_filter(‘cron_schedules’, ‘add_scheduled_interval’); function add_scheduled_interval($schedules) { /* add your time to ‘interval’ option, it should be in seconds */ $schedules[‘hourly’] = array( ‘interval’ => 5, ‘display’ => ‘Once 5 sec’ ); return $schedules; }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)