mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
feat: 提升版本号
This commit is contained in:
parent
7121b4b7ef
commit
adb8efd320
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ class Monitor {
|
|||
// 站点网络下只在主站运行
|
||||
if ( is_main_site() ) {
|
||||
add_action( 'init', [ $this, 'init' ] );
|
||||
add_action( 'wp_china_yes_monitor_hook', [
|
||||
add_action( 'wp_china_yes_monitor', [
|
||||
$this,
|
||||
'run_monitor'
|
||||
] );
|
||||
|
@ -39,7 +39,7 @@ class Monitor {
|
|||
*/
|
||||
public function init() {
|
||||
if ( ! wp_next_scheduled( 'wp_china_yes_monitor' ) ) {
|
||||
wp_schedule_event( time(), 'hourly', 'wp_china_yes_monitor_hook' );
|
||||
wp_schedule_event( time(), 'hourly', 'wp_china_yes_monitor' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue