widget_block_content

過濾鉤子
引數
  • (string) $content The widget content.
    Required:
  • (array) $instance Array of settings for the current widget.
    Required:
  • (WP_Widget_Block) $widget Current Block widget instance.
    Required:
定義位置
相關勾子
widget_text_contentwidget_custom_html_contentrender_block_contextget_block_templateget_block_templates
相關方法
filter_block_contentget_blog_countget_the_contentget_block_templateget_url_in_contentget_block_templates
引入
5.8.0
棄用
-

widget_block_content 是一個 WordPress 過濾器,允許開發人員修改在 WordPress 塊編輯器中顯示的小工具的內容。 每個小工具塊都會呼叫此過濾器,並用於修改小工具的 HTML 輸出。

在輸出前過濾Block小工具的內容。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters(
echo apply_filters(
echo apply_filters(

常見問題

FAQs
檢視更多 >