after_setup_theme

動作鉤子
do_action( 'after_setup_theme' )

after_setup_theme是一個WordPress的動作鉤子,在活動主題被設定好並且所有的功能和類都被載入後被觸發。這個鉤子通常用於為主題新增額外的功能,如自定義文章型別或短程式碼。

在主題載入後觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'after_setup_theme' );
do_action( 'after_setup_theme' );
do_action( 'after_setup_theme' );

常見問題

FAQs
檢視更多 >