wp-includes/blocks/widget-group.php

WP檔案 4
Server-side rendering of the `core/widget-group` block.
函式/鉤子名 描述
render_block_core_widget_group (函式) render_block_core_widget_group: 這是一個WordPress的核心函式,用於在編輯器中渲染widget group塊。它用於在網站的前端輸出該塊的HTML標記。
register_block_core_widget_group (函式) register_block_core_widget_group: 這個函式在編輯器中註冊一個widget組塊型別和它的設定。小工具組塊允許使用者在文章或頁面內容中新增一組小工具。
note_sidebar_being_rendered (函式) note_sidebar_being_rendered: 當WordPress模板中的側邊欄被渲染時,這個動作鉤子被觸發。它可以用來執行動作或在側邊欄內容之前或之後新增內容。
discard_sidebar_being_rendered (函式) discard_sidebar_being_rendered: 如果邊欄是空的,這個函式被用來丟棄一個當前正在渲染的邊欄。它檢查側邊欄是否有任何小工具,如果沒有,側邊欄就被丟棄。

常見問題

FAQs
檢視更多 >