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_Footer_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/footer/class-astra-update-footer-builder.php
private function get_component_name( $component_id ) {
$names = array(
'copyright' => 'Copyright',
'menu' => 'Footer Menu',
'widget-1' => 'Widget 1',
'widget-2' => 'Widget 2',
'widget-3' => 'Widget 3',
'widget-4' => 'Widget 4',
'social-icons-1' => 'Social Icons 1',
'social-icons-2' => 'Social Icons 2',
'html-1' => 'HTML 1',
'html-2' => 'HTML 2',
'html-3' => 'HTML 3',
'button-1' => 'Button 1',
'button-2' => 'Button 2',
);
return isset( $names[ $component_id ] ) ? $names[ $component_id ] : $component_id;
}
Expand full source code Collapse full source code View on Trac