Astra_Get_Sidebar_Width::execute( array $args )

Execute the ability.


Description


Parameters

$args

(array) (Required) Input arguments.


Return

(array) Result array.


Source

File: inc/abilities/customizer/general/sidebar/class-astra-get-sidebar-width.php

	public function execute( $args ) {
		$width = astra_get_option( 'site-sidebar-width', 30 );

		return Astra_Abilities_Response::success(
			__( 'Retrieved sidebar width successfully.', 'astra' ),
			array(
				'width'       => (int) $width,
				'width_label' => $width . '%',
				'min_width'   => 15,
				'max_width'   => 50,
			)
		);
	}


User Contributed Notes

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