register_block_core_site_icon_setting()
Register a core site setting for a site icon
No Hooks.
Return
null
. Nothing (null).
Usage
register_block_core_site_icon_setting();
Changelog
Since 5.9.0 | Introduced. |
register_block_core_site_icon_setting() register block core site icon setting code WP 6.6.1
function register_block_core_site_icon_setting() { register_setting( 'general', 'site_icon', array( 'show_in_rest' => true, 'type' => 'integer', 'label' => __( 'Icon' ), 'description' => __( 'Site icon.' ), ) ); }