delete_plugin

動作鉤子
do_action( 'delete_plugin', $plugin_file )
引數
  • (string) $plugin_file Path to the plugin file relative to the plugins directory.
    Required:
定義位置
相關勾子
deleted_plugindelete_linkdeleted_linkdelete_optiondeleted_option
相關方法
delete_pluginsdelete_optionwp_ajax_delete_pluginget_pluginswp_delete_linkvalidate_plugin
引入
4.4.0
棄用
-

delete_plugin: 這個函式用於從WordPress網站上刪除一個外掛。它通常用於刪除一個不再需要或在網站上造成問題的外掛。

在試圖刪除外掛之前立即啟動。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'delete_plugin', $plugin_file );
do_action( 'delete_plugin', $plugin_file );
do_action( 'delete_plugin', $plugin_file );

常見問題

FAQs
檢視更多 >