Support » Plugins and Hacks » Cronjobs do not execute.

Cronjobs do not execute.

  • I created my wordpress plugin and running work well when I use via any browser ex. http://mysite/wp-content/plugins/my-plugin/my-file.php?cron=do

    But I need to execute same file via cronjob I’m using setcronjob.com to execute but file not execute.

    this is my code

    require_once (dirname ( __FILE__ ) . '/../../../wp-config.php');
    nocache_headers ();
    if (isset($_REQUEST['cron'] == "do")){
    require_once (dirname ( __FILE__ ) . '/sample.php');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cronjobs do not execute.’ is closed to new replies.