Astra_Update_Heading_Font::get_input_schema()
Get input schema.
Description
Return
(array)
Source
File: inc/abilities/customizer/globals/typography/class-astra-update-heading-font.php
public function get_input_schema() {
return array(
'type' => 'object',
'properties' => array(
'font_family' => array(
'type' => 'string',
'description' => 'Font family name (e.g., "Playfair Display", "Montserrat", "Arial")',
),
'font_weight' => array(
'type' => 'string',
'description' => 'Font weight (e.g., "400", "500", "700")',
),
'font_size' => array(
'type' => 'object',
'description' => 'Font size with responsive values. Separate numeric value from unit. Example: {"desktop": "32", "tablet": "28", "mobile": "24", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px"}',
'properties' => array(
'desktop' => array(
'type' => 'string',
'description' => 'Desktop size value only, without unit (e.g., "32", "2")',
),
'tablet' => array(
'type' => 'string',
'description' => 'Tablet size value only, without unit',
),
'mobile' => array(
'type' => 'string',
'description' => 'Mobile size value only, without unit',
),
'desktop-unit' => array(
'type' => 'string',
'description' => 'Desktop unit (px, em, rem, vw)',
'enum' => array( 'px', 'em', 'rem', 'vw' ),
),
'tablet-unit' => array(
'type' => 'string',
'description' => 'Tablet unit (px, em, rem, vw)',
'enum' => array( 'px', 'em', 'rem', 'vw' ),
),
'mobile-unit' => array(
'type' => 'string',
'description' => 'Mobile unit (px, em, rem, vw)',
'enum' => array( 'px', 'em', 'rem', 'vw' ),
),
),
),
'line_height' => array(
'type' => 'string',
'description' => 'Line height value',
),
'text_transform' => array(
'type' => 'string',
'description' => 'Text transform (uppercase, lowercase, capitalize, none)',
'enum' => array( 'uppercase', 'lowercase', 'capitalize', 'none', '' ),
),
'letter_spacing' => array(
'type' => 'string',
'description' => 'Letter spacing value',
),
),
);
}
Expand full source code Collapse full source code View on Trac