wp-includes/blocks/post-featured-image.php

WP檔案 4
Server-side rendering of the `core/post-featured-image` block.
函式/鉤子名 描述
render_block_core_post_featured_image (函式) render_block_core_post_featured_image: 這個函式用來渲染WordPress中的特色圖片塊。特色圖片塊在文章的頂部顯示一個圖片,這個函式負責生成特色圖片的HTML標
register_block_core_post_featured_image (函式) register_block_core_post_featured_image: 該函式用於註冊一個新的核心文章特色圖片塊。它需要一個設定陣列作為引數,以定義該塊的行為和外觀。
get_block_core_post_featured_image_overlay_element_markup (函式) get_block_core_post_featured_image_overlay_element_markup:此函式返回文章特色影象塊的覆蓋元素的HTML標記。它不接受任何引數。
get_block_core_post_featured_image_border_attributes (函式) get_block_core_post_featured_image_border_attributes: 這個函式返回一個文章的特色圖片塊的邊框的HTML屬性。它不接受任何引數。

常見問題

FAQs
檢視更多 >