【php – WordPress Cron API在后台运行吗?】教程文章相关的互联网学习教程文章

php – WordPress Cron API在后台运行吗?【代码】

我正在读取wp-includes中的cron.php代码,而spawn_cron()似乎是实际执行已注册任务的代码. 函数的最后两行:$cron_url = site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron );wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );它只是打开wp-cron.php,将任务作为查询参数传递. cron.php顶部的API描述:* Schedules a hook w...