astra_addon_get_mobile_breakpoint( string $min = '', string $max = '' )

Get the mobile breakpoint value.


Description


Parameters

$min

(string) (Optional) min.

Default value: ''

$max

(string) (Optional) max.

Default value: ''


Return

(string) header_breakpoint.


Source

File: classes/helper-functions.php

function astra_addon_get_mobile_breakpoint( $min = '', $max = '' ) {

	$header_breakpoint = apply_filters( 'astra_mobile_breakpoint', 544 );

	if ( '' !== $min ) {
		$header_breakpoint = $header_breakpoint - $min;
	} elseif ( '' !== $max ) {
		$header_breakpoint = $header_breakpoint + $max;
	}

	return absint( $header_breakpoint );
}

Changelog

Changelog
Version Description
2.4.0 Introduced.


User Contributed Notes

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