LoginSignup
0
1

More than 5 years have passed since last update.

WordPressのスケジュールで大量に発生する「do_pings」フックを削除するには

Posted at

WordPressをインストール後に擬似CRONのスケジュールにて、「do_pings」フックが大量に発生したとき、同フックの削除(消去)の仕方を示します。

簡単なプログラムを以下の様に作り、実行するだけです。

<?php

// WordPressのインストール先の「wp-load.php」を読み込む
require dirname(__FILE__) . "/wp-load.php";

// フックのスケジュールをクリアする
wp_clear_scheduled_hook('do_pings');

?>

do_pingフックが大量(私の場合には1000個単位)発生しているので、これで消去しています。

お役に立てれば。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1