[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> site-logo.php (summary)

Server-side rendering of the `core/site-logo` block.

File Size: 234 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 functions

  render_block_core_site_logo()
  register_block_core_site_logo_setting()
  register_block_core_site_icon_setting()
  register_block_core_site_logo()
  _override_custom_logo_theme_mod()
  _sync_custom_logo_to_site_logo()
  _delete_site_logo_on_remove_custom_logo()
  _delete_site_logo_on_remove_theme_mods()
  _delete_site_logo_on_remove_custom_logo_on_setup_theme()
  _delete_custom_logo_on_remove_site_logo()

Functions
Functions that are not part of a class:

render_block_core_site_logo( $attributes )   X-Ref
Renders the `core/site-logo` block on the server.

param: array $attributes The block attributes.
return: string The render.

register_block_core_site_logo_setting()   X-Ref
Register a core site setting for a site logo


register_block_core_site_icon_setting()   X-Ref
Register a core site setting for a site icon


register_block_core_site_logo()   X-Ref
Registers the `core/site-logo` block on the server.


_override_custom_logo_theme_mod( $custom_logo )   X-Ref
Overrides the custom logo with a site logo, if the option is set.

param: string $custom_logo The custom logo set by a theme.
return: string The site logo if set.

_sync_custom_logo_to_site_logo( $value )   X-Ref
Updates the site_logo option when the custom_logo theme-mod gets updated.

param: mixed $value Attachment ID of the custom logo or an empty value.
return: mixed

_delete_site_logo_on_remove_custom_logo( $old_value, $value )   X-Ref
Deletes the site_logo when the custom_logo theme mod is removed.

param: array $old_value Previous theme mod settings.
param: array $value     Updated theme mod settings.

_delete_site_logo_on_remove_theme_mods()   X-Ref
Deletes the site logo when all theme mods are being removed.


_delete_site_logo_on_remove_custom_logo_on_setup_theme()   X-Ref
Hooks `_delete_site_logo_on_remove_custom_logo` in `update_option_theme_mods_$theme`.
Hooks `_delete_site_logo_on_remove_theme_mods` in `delete_option_theme_mods_$theme`.

Runs on `setup_theme` to account for dynamically-switched themes in the Customizer.


_delete_custom_logo_on_remove_site_logo()   X-Ref
Removes the custom_logo theme-mod when the site_logo option gets deleted.




Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref