Related_Posts_Element
Registers the crp-related-posts Bricks element.
Maps its own controls onto the [crp] shortcode attributes and hands off to
Shortcodes::related_posts() so output and every shortcode-level fix still flow through the
same code path as [crp]. Bricks already provides ID/CSS classes, attributes and the whole
Style tab on every element via render_attributes( '_root' ), so — as with the Elementor
widget, and unlike the WPBakery element — there’s no wrapper markup to build by hand.
Loaded by \Bricks\Elements::register_element(), never by the plugin autoloader: the parent
class only exists from init priority 10 onwards.
Namespace: WebberZone\Contextual_Related_Posts\Pro\Builders\Bricks
Since: 4.4.0
Source: includes/pro/builders/bricks/class-related-posts-element.php line 31
Extends: Bricks\Element
Methods
get_label()
Get element label.
Since: 4.4.0
Line: 92
public function get_label( ): string;
Returns: string
get_description()
Get element description shown in the builder panel.
Since: 4.4.0
Line: 103
public function get_description( ): string;
Returns: string
get_keywords()
Get element search keywords.
Since: 4.4.0
Line: 114
public function get_keywords( ): string[];
Returns: string[]
set_control_groups()
Register the control groups shown on the Content tab.
Since: 4.4.0
Line: 123
public function set_control_groups( );
set_controls()
Register all element controls.
Since: 4.4.0
Line: 150
public function set_controls( );
render()
Render the element.
Since: 4.4.0
Line: 376
public function render( );