This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Astra_Update_Header_Builder::get_component_name( string $component_id )

Get human-readable component name.


Description


Parameters

$component_id

(string) (Required) Component ID.


Return

(string) Component name.


Source

File: inc/abilities/customizer/header/class-astra-update-header-builder.php

	private function get_component_name( $component_id ) {
		$names = array(
			'logo'              => 'Logo',
			'menu-1'            => 'Primary Menu',
			'menu-2'            => 'Secondary Menu',
			'button-1'          => 'Button 1',
			'button-2'          => 'Button 2',
			'button-3'          => 'Button 3',
			'html-1'            => 'HTML 1',
			'html-2'            => 'HTML 2',
			'html-3'            => 'HTML 3',
			'widget-1'          => 'Widget 1',
			'widget-2'          => 'Widget 2',
			'widget-3'          => 'Widget 3',
			'social-icons-1'    => 'Social Icons',
			'social-icons-2'    => 'Social Icons 2',
			'search'            => 'Search',
			'mobile-menu'       => 'Mobile Menu',
			'mobile-trigger'    => 'Mobile Trigger',
			'woo-cart'          => 'WooCommerce Cart',
			'edd-cart'          => 'EDD Cart',
			'account'           => 'Account',
			'language-switcher' => 'Language Switcher',
		);

		return isset( $names[ $component_id ] ) ? $names[ $component_id ] : $component_id;
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.