method_get_all_bs_breakpoint_options()

 
 
 
 

method_get_all_bs_breakpoint_options()

Gets all Bootstrap breakpoint dimensions as option objects.


Description

Returns every breakpoint defined in METHOD_OPTIONS['breakpoints']['dimensions'] formatted as objects with key, name, and hint properties, suitable for CustomSelectControl.


Parameters

None.


Return

(array) Array of option objects:

PHP
array(
    array( 'key' => 'xs',  'name' => 'XS',  'hint' => '0px' ),
    array( 'key' => 'sm',  'name' => 'SM',  'hint' => '576px' ),
    array( 'key' => 'md',  'name' => 'MD',  'hint' => '768px' ),
    // ...
)

Source

File: lib/helper-functions.php


Notes

  • Passed to the editor via methodGlobalData.bsBreakpoints.
  • Used by the Navbar block’s “Width to Expand Nav” select.
  • Used by the Scrollspy block’s “Width to Become Sticky” select.

Changelog

VersionDescription
2.0.0Introduced.