https://wordpress.org/support/topic/multisite-compatibility-116/
wordpress 6.1.5 mailpoet 4.5.2
https://kb.mailpoet.com/article/129-newsletter-task-scheduler-cron
(1) Newsletter task scheduler (cron) → Server side cron (Linux cron)
メインサイトがmailpoetプラグイン有効にしてないと
php /usr/local/www/apache24/data/wp-content/plugins/mailpoet/mailpoet-cron.php /usr/local/www/apache24/data/ 実行でエラー MailPoet plugin is not active
(2) Newsletter task scheduler (cron) → WordPress built-in cron (recommended)
action-schedulerを使う場合
mailpoetを使わないサイトがある場合に Network Activate してはいけない
wp_actionscheduler_actions, wp_actionscheduler_logs に
mailpoet/cron/daemon-run action failed via WP Cron: Sender name and email are not configured.
が溜まる
Network Activate した後に Network Deactivate すると
wp_actionscheduler_actions, wp_actionscheduler_logs に
mailpoet/cron/daemon-run action failed via WP Cron: Scheduled action for mailpoet/cron/daemon-trigger will not be executed as no callbacks are registered.
が溜まる場合がある?
サイト個別にActivate → Deactivate すると解消する
action-scheduler
wp-content/plugins/mailpoet/vendor/woocommerce/action-scheduler/
https://actionscheduler.org/admin/
The Scheduled Actions option is not found in the Tools menu.
https://wordpress.org/support/topic/the-scheduled-actions-option-is-not-found-in-the-tools-menu/
マルチサイトだと Tools メニューに Scheduled Actions が表示されない
→ tools.php?page=action-scheduler を直接入力
https://example.com/site2/wp-admin/tools.php?page=action-scheduler
wp-cli
https://actionscheduler.org/wp-cli/
wp_actionscheduler_actions, wp_actionscheduler_logs を削除
wp action-scheduler clean --batch-size=20 --status=complete,failed,canceled --before='7 days ago' --url=https://example.com/site2/
DELETE FROM `wp_actionscheduler_actions` WHERE `status` IN ('complete','failed','canceled')
https://www.mrkwp.com/2023/09/how-to-clear-scheduled-action-logs-in-wordpress/ 2023