wp_install

動作鉤子
do_action( 'wp_install', $user )
引數
  • (WP_User) $user The site owner.
    Required:
定義位置
相關勾子
wp_installed_emailwp_print_stylespre_uninstall_pluginupgrader_pre_installwp_meta
相關方法
wp_installwp_installingwp_not_installedwp_saltwp_install_defaultswp_insert_link
引入
3.9.0
棄用
-

wp_install:這是 WordPress 內建的一個函式,用於安裝 WordPress: 該函式在初始安裝時被呼叫,用於建立資料庫表、儲存基本設定、建立管理員賬戶等。

在網站完全安裝完畢後觸發。

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

常見問題

FAQs
檢視更多 >