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
檢視更多 >