Astra_Update_Global_Buttons::get_input_schema()

Get input schema.


Description


Return

(array)


Source

File: inc/abilities/customizer/globals/buttons/class-astra-update-global-buttons.php

	public function get_input_schema() {
		return array(
			'type'       => 'object',
			'properties' => array(
				'button_type'            => array(
					'type'        => 'string',
					'description' => __( 'Which button to update: "primary", "secondary", or "both".', 'astra' ),
					'enum'        => array( 'primary', 'secondary', 'both' ),
				),
				'preset'                 => array(
					'type'        => 'string',
					'description' => __( 'Button preset style to apply. Options: "button_01" (Square), "button_02" (Rounded), "button_03" (Pill), "button_04" (Square Outline), "button_05" (Rounded Outline), "button_06" (Pill Outline).', 'astra' ),
					'enum'        => array( 'button_01', 'button_02', 'button_03', 'button_04', 'button_05', 'button_06' ),
				),
				'text_color'             => array(
					'type'        => 'string',
					'description' => __( 'Button text color in hex, rgb, or rgba format (e.g., "#ffffff", "rgb(255,255,255)").', 'astra' ),
				),
				'text_hover_color'       => array(
					'type'        => 'string',
					'description' => __( 'Button text hover color in hex, rgb, or rgba format.', 'astra' ),
				),
				'background_color'       => array(
					'type'        => 'string',
					'description' => __( 'Button background color in hex, rgb, or rgba format.', 'astra' ),
				),
				'background_hover_color' => array(
					'type'        => 'string',
					'description' => __( 'Button background hover color in hex, rgb, or rgba format.', 'astra' ),
				),
				'border_color'           => array(
					'type'        => 'string',
					'description' => __( 'Button border color in hex, rgb, or rgba format.', 'astra' ),
				),
				'border_hover_color'     => array(
					'type'        => 'string',
					'description' => __( 'Button border hover color in hex, rgb, or rgba format.', 'astra' ),
				),
				'padding'                => array(
					'type'        => 'object',
					'description' => __( 'Button padding. Provide an object with desktop/tablet/mobile and top/right/bottom/left values.', 'astra' ),
				),
				'border_width'           => array(
					'type'        => 'object',
					'description' => __( 'Button border width. Provide an object with top/right/bottom/left values.', 'astra' ),
				),
				'border_radius'          => array(
					'type'        => 'object',
					'description' => __( 'Button border radius. Provide an object with desktop/tablet/mobile and top/right/bottom/left values.', 'astra' ),
				),
			),
		);
	}

User Contributed Notes

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