Description

This action can be used to output HTML markup for a registered Conductor Widget display in the Conductor Widget Display Settings section. This action is triggered for each registered Conductor Widget display that is not a default Conductor Widget display.

The following is a list of default CSS classes which can be used in HTML markup for registered Conductor Widget display previews (see examples below):

  • posts (wrapper, designates posts)
  • post (post, designates a post, use inside of posts)
  • post-medium (post modifier, designates one medium post, use with post)
  • post-small (post modifier, designates one small post, use with post)
  • post-featured-image (post component, designates a featured image block, use inside of post)
  • post-title (post component, designates a title block, use inside of post)
  • post-content (post component, designates a content block, use inside of post)

This action is executed when the Conductor Widget displays are output in the Conductor Widget form via Conductor_Widget::form().

Technical Details

  • Type: Action
  • Parameters:
    • $size (string): The ID of the Conductor Widget display
    • $instance (array): The Conductor Widget instance (settings)
    • $widget (Conductor_Widget): The Conductor_Widget instance

Resources

Examples

The following example outputs HTML markup for Conductor Widget displays. It can be used in conjunction with the example on the conductor_widget_displays documentation page.