pre_auto_update

動作鉤子
do_action( 'pre_auto_update', $type, $item, $context )
引數
  • (string) $type The type of update being checked: 'core', 'theme', 'plugin', or 'translation'.
    Required:
  • (object) $item The update offer.
    Required:
  • (string) $context The filesystem context (a path) against which filesystem access and status should be checked.
    Required:
定義位置
相關勾子
wp_maybe_auto_updateprofile_updateauto_update_typethemes_auto_update_enabledwpmu_blog_updated
相關方法
wp_maybe_auto_updatefind_core_auto_updatecore_auto_updates_settingswp_get_auto_update_messagewp_ajax_toggle_auto_updatesget_author_template
引入
4.4.0
棄用
-

pre_auto_update:這是WordPress的一個過濾鉤子,允許你在自動更新系統檢查和安裝更新之前修改它所使用的引數。這個鉤子在自動更新系統執行之前被觸發,允許你修改或取消更新過程。

在自動更新之前立即觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'pre_auto_update', $type, $item, $context );
do_action( 'pre_auto_update', $type, $item, $context );
do_action( 'pre_auto_update', $type, $item, $context );

常見問題

FAQs
檢視更多 >