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

Get the tablet breakpoint value.


Description


Parameters

$min

(string) (Optional) min.

Default value: ''

$max

(string) (Optional) max.

Default value: ''


Return

(number) $breakpoint.


Source

File: inc/core/common-functions.php

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

	$update_breakpoint = astra_get_option( 'can-update-theme-tablet-breakpoint', true );

	// Change default for new users.
	$default = ( true === $update_breakpoint ) ? 921 : 768;

	$header_breakpoint = apply_filters( 'astra_tablet_breakpoint', $default );

	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.