register_block_core_site_icon_setting()WP 1.0

Register a core site setting for a site icon

No Hooks.

Return

null. Nothing.

Usage

register_block_core_site_icon_setting();

register_block_core_site_icon_setting() code WP 6.1.1

function register_block_core_site_icon_setting() {
	register_setting(
		'general',
		'site_icon',
		array(
			'show_in_rest' => true,
			'type'         => 'integer',
			'description'  => __( 'Site icon.' ),
		)
	);
}