llms_is_favorites_enabled()

Filter Hook to enable the Favorite feature.


Return Return

(bool) True if favorites are enabled, false otherwise.


Top ↑

Source Source

File: includes/functions/llms.functions.favorite.php

function llms_is_favorites_enabled() {

	$favorite_enabled = llms_parse_bool( get_option( 'lifterlms_favorites', 'no' ) );

	/**
	 * Filter to enable/disable the Favorite feature.
	 *
	 * @since 7.5.0
	 *
	 * @param bool $favorite_enabled True if favorites are enabled, false otherwise.
	 */
	return apply_filters( 'llms_favorites_enabled', $favorite_enabled );
}


Top ↑

Changelog Changelog

Changelog
Version Description
7.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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