wpc_lesson_button_icon

apply_filters( ‘wpc_lesson_button_icon’, string $icon, int $post_id )

While inside the lesson loop, this filters each icon in the entire list of lessons.

Parameters

$icon (string) icon displayed beside the lesson button.

$post_id (int) the post ID

Usage

add_filter('wpc_lesson_button_icon', 'change_icon', 10, 2);

function change_icon($icon, $post_id){
	if(!is_user_logged_in()){
		return '<i class="fa fa-times">';
	} else {
		return $icon;
	}
}