• 25-09-2023, 15:36:14
    #10
    Bunu eklenti dosyasında ekleyince action hep none oluyor. functions.php'ye ekleyince istediğim oluyor. keşke çalışsa
  • 25-09-2023, 15:46:46
    #11
    halilkaya adlı üyeden alıntı: mesajı görüntüle
    add_action( 'wpb_custom_cron', 'wpb_custom_cron_func' );
     
    function wpb_custom_cron_func() {
      wp_mail( 'you@example.com', 'Automatic email', 'Automatic scheduled email from WordPress to test cron');
    }
    bu işe yaramıyor mu?

    Eklenti için bunu dener misin?

    if ( ! wp_next_scheduled( ‘wpb_custom_cron’ ) ) {
    wp_schedule_event( time(), ‘hourly’, ‘my_task_hook’ );
    }
    Bunu eklenti dosyasında ekleyince action hep none oluyor. functions.php'ye ekleyince istediğim oluyor. keşke çalışsa
  • 25-09-2023, 16:10:08
    #13
    Bu şekilde uygulandığında aşağıdaki resimdeki hata meydana geliyor. Daha doğrusu hata değil. Algılama yapmıyor. none olarak kalıyor

    İlgili Resim : https://prnt.sc/y9UVPKOAUCO8


    yeni schedule'leri tema functions.php ye eklediğimde görüyor. eklentiye eklediğimde görmüyor.

    İlgili Resim : https://prnt.sc/6udJVdEKhbqq