Namespace: widgetsPreview

wp.customize. widgetsPreview

Classes

SidebarPartial
WidgetPartial

Methods


<static> self.buildWidgetSelectors()

Calculate the selector for the sidebar's widgets based on the registered sidebar's info.
Since:
  • 3.9.0
Source:

<static> self.getWidgetSettingId(widgetId)

Convert a widget ID into a Customizer setting ID.
Parameters:
Name Type Description
widgetId string Widget ID.
Since:
  • 4.5.0
Source:
Returns:
settingId Setting ID.
Type
string

<static> self.highlightControls()

Show a title and highlight widgets on hover. On shift+clicking focus the widget control.
Since:
  • 3.9.0
Source:

<static> self.highlightWidget(widgetId)

Highlight the widget on widget updates or widget control mouse overs.
Parameters:
Name Type Description
widgetId string ID of the widget.
Since:
  • 3.9.0
Source:

<static> self.parseWidgetId(widgetId)

Parse a widget ID.
Parameters:
Name Type Description
widgetId string Widget ID.
Since:
  • 4.5.0
Source:
Returns:
Type
Object

<static> self.parseWidgetSettingId(settingId)

Parse a widget setting ID.
Parameters:
Name Type Description
settingId string Widget setting ID.
Since:
  • 4.5.0
Source:
Returns:
Type
Object | null