wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder-model.php
/**
     * Add favorite option to module instance
     * @return object
     */
Add favorite option to module instance
@return object
Add favorite option to module instance @return object
private static function add_favorite_option(Themify_Builder_Component_Module $instance) {
	static $fv = NULL;
	if ($fv === NULL) {
	    $fv = get_user_option('themify_module_favorite', get_current_user_id());
	    $fv = !empty($fv) ? (array) json_decode($fv) : array();
	}
	$instance->favorite = !empty($fv[$instance->slug]);
	return $instance;
    }
private static function add_favorite_option ( Themify_Builder_Component_Module $ instance ) { static $ fv = NULL ; if ( $ fv === NULL ) { $ fv = get_user_option ( 'themify_module_favorite' , get_current_user_id ( ) ) ; $ fv = ! empty ( $ fv ) ? ( array ) json_decode ( $ fv ) : array ( ) ; } $ instance -> favorite = ! empty ( $ fv [ $ instance -> slug ] ) ; return $ instance ; }
Add favorite option to module instance
 @return object
Add favorite option to module instance @return object