upgrader_clear_destination

過濾鉤子
apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] )
引數
  • (true|WP_Error) $removed Whether the destination was cleared. True upon success, WP_Error on failure.
    Required:
  • (string) $local_destination The local package destination.
    Required:
  • (string) $remote_destination The remote package destination.
    Required:
  • (array) $hook_extra Extra arguments passed to hooked filters.
    Required:
定義位置
相關勾子
pre_user_descriptionupgrader_source_selectionupgrader_pre_installupgrader_package_optionsupgrader_post_install
相關方法
get_file_descriptionwp_sidebar_descriptionget_the_author_descriptionget_the_archive_descriptionget_the_posts_paginationregister_deactivation_hook
引入
2.8.0
棄用
-

upgrader_clear_destination:這是一個 WordPress 操作鉤子,在清除外掛或主題升級的目標目錄之前觸發。 此鉤子允許您在升級過程開始之前執行其他操作或清理。

過濾升級器是否清除了目的地。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$removed = apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] );
$removed = apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] );
$removed = apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] );

常見問題

FAQs
檢視更多 >