single.html
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Blocks
  • Plugins
  • Themes
  • Sitemap
  • Blog
  • Block news
  • About

Home » Parsed: 114345

Parsed: 114345

<?php

/**
 * Server-side rendering of the `core/calendar` block.
 *
 * @package WordPress
 */

/* function render_block_core_calendar() – Renders the `core/calendar` block on server. */

/* function register_block_core_calendar() – Registers the `core/calendar` block on server. */

add_action( 'init', 'register_block_core_calendar' )  <;

/* function block_core_calendar_has_published_posts() – Returns whether or not there are any published posts. */

/* function block_core_calendar_update_has_published_posts() – Queries the database for any published post and saves
a flag whether any published post exists or not. */

// We only want to register these functions and actions when
// we are on single sites. On multi sites we use `post_count` option.
if ( ! is_multisite() ) {
/* function block_core_calendar_update_has_published_post_on_delete() – Handler for updating the has published posts flag when a post is deleted. */

/* function block_core_calendar_update_has_published_post_on_transition_post_status() – Handler for updating the has published posts flag when a post status changes. */

  add_action( 'delete_post', 'block_core_calendar_update_has_published_post_on_delete' );
  add_action( 'transition_post_status', 'block_core_calendar_update_has_published_post_on_transition_post_status', 10, 3 );
}
 

Published:

25th November 2019

Last updated:

26th May 2023

Information

Source ref: wp-includes/blocks/calendar.php
Parse count / Source file date: 1684920416
MD5 hash: b4ef39aed6cdd3cad73949b322fa66f9
WordPress core a2z

WordPress core a2z

WordPress core only

WordPress version:6.2.2
Gutenberg version:
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
(C) Copyright Bobbing Wide 2020-2023. All rights reserved.


Website designed and developed by Herb Miller 
Proudly powered by WordPress and oik plugins

  • Twitter
  • Facebook
  • GitHub
  • WordPress

  • Home
  • Blog
  • Sitemap
  • Sites

Summary file