astra_addon_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

(string) $breakpoint.


Source

File: classes/helper-functions.php

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

	$update_breakpoint = astra_get_option( 'can-update-addon-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 $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.