wp_schedule_https_detection

函数
wp_schedule_https_detection ( No parameters )

wp_schedule_https_detection: 这是一个WordPress的函数,用来安排HTTPS兼容性的检查。它允许你指定一个时间间隔和一个将在该间隔内执行的回调函数。例如,你可以用这个函数每天检查你的网站是否与HTTPS兼容。

定时检测HTTPS支持的Cron钩子。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_schedule_https_detection() {
if ( wp_installing() ) {
return;
}
if ( ! wp_next_scheduled( 'wp_https_detection' ) ) {
wp_schedule_event( time(), 'twicedaily', 'wp_https_detection' );
}
}
function wp_schedule_https_detection() { if ( wp_installing() ) { return; } if ( ! wp_next_scheduled( 'wp_https_detection' ) ) { wp_schedule_event( time(), 'twicedaily', 'wp_https_detection' ); } }
function wp_schedule_https_detection() {
	if ( wp_installing() ) {
		return;
	}

	if ( ! wp_next_scheduled( 'wp_https_detection' ) ) {
		wp_schedule_event( time(), 'twicedaily', 'wp_https_detection' );
	}
}

常见问题

FAQs
查看更多 >