Empty_Breakpoints->get_index( string $value, string $by = 'SLUG' )

Description

public

Return the numeric index of the desired breakpoint.

Availability

  • Backend
  • Empty Page Builder
  • Frontend

Since

2.0

Parameters

string $value
Value to retrieve the index by.
string $by = 'SLUG'
What to retrieve the index by.
Possible values are SLUG or TITLE.

Return value

integer
Numeric index of the breakpoint.