WordPress和Mailpoet CRON [英] WordPress and Mailpoet CRON

查看:84
本文介绍了WordPress和Mailpoet CRON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带MailPoet的WordPress。

I have a WordPress with MailPoet.

有人知道是否可以为Mailpoet安排CRON任务吗?

Someone know if possible to schedule CRON task for Mailpoet ?

仅当有特定类别的新内容时,我才必须每天(星期一至星期五,下午5点)发送新闻通讯。

I have to send Newsletter every day (Monday to Friday at 5pm) only if there is a new content from specific categorie.

但是我不知道Mailpoet的工作方式。我想创建一个脚本php,但我在Google上找不到关于CRON和MailPoet的东西……

But i dont know how Mailpoet works. I would like to create a script php but i didnt find sometjing about CRON and MailPoet on Google ...

我有MailPoet的最新版本和高级版本。

I have the last version and premium of MailPoet.

感谢您的帮助。

推荐答案

答案在Mailpoet网站上:

The answer is on the Mailpoet website:

http:/ /docs.mailpoet.com/article/47-configure-cron-job


2.4 Cron作业命令调用MailPoet的Cron URL

2.4 Cron job commands to call MailPoet's Cron URL

以下是您可以使用的一些命令示例。

Below are a few examples of commands you can use.

您只需设置一个在服务器上,所以只需选择一个在服务器上可用的
(curl会更安全):

You'll only need to set up one on your server, so simply pick the one which works on your server ( curl is safer):

curl --silent http://www.yourwebsite.com/wp-cron.php?xxxx ...> / dev / null 2>& 1

wget --quiet http://www.yourwebsite。 com / wp-cron.php?xxxx ...

别忘了替换 http://www.yourwebsite.com/wp-cron.php?xxxx ...与您的
拥有MailPoet的Cron URL。

Don't forget to replace http://www.yourwebsite.com/wp-cron.php?xxxx... with your own MailPoet's Cron URL.

某些主机可能允许您从其admin
界面设置cron命令。但是,命令wget,curl和lynx可能不可用
,因此,如果cron似乎没有运行,请与主机联系
,它们应该可以为您提供帮助。

Some hosts may allow you to set up cron commands from their admin interfaces. But, the commands wget, curl and lynx may not be available, so if the cron doesn't seem to be running, get in touch with your host and they should be able to help you out.

这篇关于WordPress和Mailpoet CRON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆