Styles_Handler
Admin Columns Class.
Namespace: WebberZone\Knowledge_Base\Frontend
Since: 2.3.0
Source: includes/frontend/class-styles-handler.php line 21
Methods
__construct()
Constructor class.
Since: 2.3.0
Line: 28
public function __construct( );
register_styles()
Enqueue styles.
Line: 36
public function register_styles( );
register_block_styles()
Enqueue block assets for both front-end and editor (including Site Editor).
Since: 2.3.0
Line: 92
public function register_block_styles( );
add_style_body_class()
Add body class for selected KB style.
Since: 2.3.0
Line: 167
public function add_style_body_class( $classes ): array;
| Type | Name | Description |
|---|---|---|
array | $classes | Array of body classes. |
Returns: array — Modified array of body classes.
get_style_url()
Get style URL for a given style name.
Checks multiple directories in priority order:
- Pro directory (via filter)
- Free styles directory
Falls back to ‘classic’ style if requested style doesn’t exist.
Since: 2.3.0
Line: 195
public function get_style_url( $style_name, $rtl_suffix = ..., $min_suffix = ... ): string;
| Type | Name | Description |
|---|---|---|
string | $style_name | Style name (e.g., ‘classic’, ‘modern’). |
string | $rtl_suffix | RTL suffix (‘-rtl’ or ”). |
string | $min_suffix | Minification suffix (‘.min’ or ”). |
Returns: string — Style URL.