Bricks_Module
Bootstraps the Bricks element(s) when the Bricks theme is active.
Namespace: WebberZone\Contextual_Related_Posts\Pro\Builders\Bricks
Since: 4.4.0
Source: includes/pro/builders/bricks/class-bricks-module.php line 21
Methods
__construct()
Constructor.
Line: 51
public function __construct( );
is_active() static
Whether Bricks is loaded and ready to register elements.
\Bricks\Element is only required in by \Bricks\Elements::init_elements() on init at
priority 10, so it is deliberately part of the check — extending a class that doesn’t exist
yet is a fatal error, not a warning.
Since: 4.4.0
Line: 70
static public function is_active( ): bool;
Returns: bool
register_elements()
Register all Bricks elements provided by CRP.
Since: 4.4.0
Line: 79
public function register_elements( ): void;
Returns: void
register_category()
Add the “WebberZone” element category label.
Bricks groups the elements panel by each element’s $category and looks the heading up in
its own i18n strings, so a category slug that isn’t in there renders with no label at all.
Since: 4.4.0
Line: 102
public function register_category( $i18n ): array;
| Type | Name | Description |
|---|---|---|
array |
$i18n |
Bricks builder i18n strings. |
Returns: array