dozent_html_class( array $classes = array() )
Function which let you hassle free string class from the class or array
Description
This function convert the array or string to pure html class without class attribute.
Example usage:
dozent_html_class( 'class-name' );
dozent_html_class( ['class-one', 'class-two', 'more-class'] );
See also
Parameters
- $classes
-
(array) (Optional)
Default value: array()
Return
(mixed|void)
Source
File: includes/template-functions.php
function dozent_html_class( $classes = [] ) { $modified_classes = (array) $classes; $modified_classes = implode( " ", array_filter( $modified_classes ) ); /** * Filter class which passed by dozent_html_class() function * * @since DozentLMS 1.0.0 * * @param string|array $classes Raw class * * @param string $modified_classes Class which modified by the function */ return apply_filters( 'dozent_html_class', $modified_classes, $classes ); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |