wp-includes/blocks/calendar.php

WP檔案 6
Server-side rendering of the `core/calendar` block.
函式/鉤子名 描述
render_block_core_calendar (函式) render_block_core_calendar: 這個函式用來渲染WordPress中的日曆塊。日曆塊顯示一個文章的日曆: 這個函式負責生成日曆塊的HTML標記。
register_block_core_calendar (函式) register_block_core_calendar: 這個函式註冊了一個顯示日曆的區塊,該日曆帶有文章的連結。它包括自定義日曆顯示的選項,如顯示的月數,連結的格式,以及是否顯示文章數量。
block_core_calendar_update_has_published_posts (函式) block_core_calendar_update_has_published_posts: 這個函式用來更新WordPress日曆中所有日期的has_published_posts元值。它不接受任
block_core_calendar_update_has_published_post_on_transition_post_status (函式) block_core_calendar_update_has_published_post_on_transition_post_status: 這個函式用來在一個文章狀態改變時,更新指定日期的has
block_core_calendar_update_has_published_post_on_delete (函式) block_core_calendar_update_has_published_post_on_delete: 當一個文章被刪除時,這個函式用來更新指定日期的has_published_posts元
block_core_calendar_has_published_posts (函式) block_core_calendar_has_published_posts: 這個函式用來確定在一個給定的日期是否有任何已發表的文章。它接收一個日期字串並返回一個布林值。

常見問題

FAQs
檢視更多 >