llms_post_classes( array $classes, array $class = array(), int $post_id = '' )
Add various css classes to LifterLMS post types when post_class()
is called
Description Description
Succeeds now deprecated llms_lesson_complete_classes()
.
Parameters Parameters
- $classes
-
(array) (Required) array of classes to be applied to the post element
- $class
-
(array) (Optional) array of additional classes
Default value: array()
- $post_id
-
(int) (Optional) WP Post ID
Default value: ''
Return Return
(array)
Source Source
File: includes/llms.template.functions.php
wp_reset_postdata(); $post = $temp; return $excerpt; } /** * Shuffles an array while keeping the array indices * * @param array $array * * @return bool */ function llms_shuffle_assoc( &$array ) { $keys = array_keys( $array ); shuffle( $keys ); foreach ( $keys as $key ) { $new[ $key ] = $array[ $key ]; } $array = $new; return true; } /** * Get Image size for custom image sizes * * @param string $name * @param arrray $default * @return array
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.7.11 | Introduced. |