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().


Top ↑

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: ''


Top ↑

Return Return

(array)


Top ↑

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.7.11 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.