llms_is_favorites_enabled()
Filter Hook to enable the Favorite feature.
Return Return
(bool) True if favorites are enabled, false otherwise.
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 );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.5.0 | Introduced. |