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_column_label( string $section, string $column )
Get human-readable column label.
Description
Parameters
- $section
-
(string) (Required) Section name (above, primary, below).
- $column
-
(string) (Required) Column name (e.g., primary_1, above_2).
Return
(string) Formatted column label.
Source
File: inc/abilities/customizer/footer/class-astra-update-footer-builder.php
private function get_column_label( $section, $column ) {
$section_labels = array(
'above' => 'Above Footer',
'primary' => 'Primary Footer',
'below' => 'Below Footer',
);
// Extract column number from column name (e.g., primary_1 -> 1).
$column_number = str_replace( $section . '_', '', $column );
$section_label = isset( $section_labels[ $section ] ) ? $section_labels[ $section ] : $section;
return sprintf( '%s Column %s', $section_label, $column_number );
}
Expand full source code Collapse full source code View on Trac