Astra_List_Font_Families::get_input_schema()

Get input schema.


Description


Return

(array)


Source

File: inc/abilities/customizer/globals/typography/class-astra-list-font-families.php

	public function get_input_schema() {
		return array(
			'type'       => 'object',
			'properties' => array(
				'limit'        => array(
					'type'        => 'integer',
					'description' => 'Maximum number of fonts to return. Default is 20.',
					'default'     => 20,
					'minimum'     => 1,
					'maximum'     => 100,
				),
				'category'     => array(
					'type'        => 'string',
					'description' => 'Filter fonts by category.',
					'enum'        => array( 'all', 'sans-serif', 'serif', 'display', 'handwriting', 'monospace' ),
					'default'     => 'all',
				),
				'search'       => array(
					'type'        => 'string',
					'description' => 'Search for fonts by name.',
					'default'     => '',
				),
				'popular_only' => array(
					'type'        => 'boolean',
					'description' => 'Return only the most popular and commonly used fonts.',
					'default'     => true,
				),
			),
			'required'   => array(),
		);
	}

User Contributed Notes

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