register_block_core_site_icon_setting()WP 1.0

Register a core site setting for a site icon

Хуков нет.

Возвращает

null. Ничего.

Использование

register_block_core_site_icon_setting();

Код register_block_core_site_icon_setting() WP 6.0.2

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