automatic_updates_is_vcs_checkout

過濾鉤子
apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context )
引數
  • (bool) $checkout Whether a VCS checkout was discovered at `$context` or ABSPATH, or anywhere higher.
    Required:
  • (string) $context The filesystem context (a path) against which filesystem status should be checked.
    Required:
定義位置
相關勾子
automatic_updates_completeautomatic_updater_disabledautomatic_updates_debug_emailautomatic_updates_send_debug_emailthemes_update_check_locales
相關方法
wp_authenticate_spam_checkupdate_posts_count_update_post_term_countcore_auto_updates_settingswp_maybe_update_user_countsupdate_post_cache
引入
3.7.0
棄用
-

automatic_updates_is_vcs_checkout 是一個過濾鉤子,允許你控制自動更新系統是否認為該網站是一個版本控制簽出。該鉤子接收一個布林值,表示該網站是否是版本控制簽出,如果需要的話,返回一個修改值。

過濾自動更新程式是否應考慮一個檔案系統位置可能由版本控制系統管理。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );
return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );
return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );

常見問題

FAQs
檢視更多 >