astra_get_mobile_breakpoint( mixed $min = '', mixed $max = '' )

Get the mobile breakpoint value.


Description


Parameters

$min

(mixed) (Optional) min.

Default value: ''

$max

(mixed) (Optional) max.

Default value: ''


Return

(number) header_breakpoint.


Source

File: inc/core/common-functions.php

function astra_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.