WordPress.org

Ready to get started?Download WordPress

Forums

Cronjobs do not execute. (2 posts)

  1. kokarat
    Member
    Posted 2 years ago #

    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

    <?php
    require_once (dirname ( __FILE__ ) . '/../../../wp-config.php');
    nocache_headers ();
    if (isset($_REQUEST['cron'] == "do")){
    require_once (dirname ( __FILE__ ) . '/sample.php');
    cron_exc();
    }
    ?>
  2. kokarat
    Member
    Posted 2 years ago #

    still need to help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags