Browse: Home / Hooks /

learndash_focus_mode_can_view_comments

This hook has been deprecated.

apply_filters_deprecated( 'learndash_focus_mode_can_view_comments',  boolean $load_focus_comments )

Filters the post listing before displaying it to user.


Description #


Parameters #

$load_focus_comments

(boolean) Whether to show comments in focus mode or not.


Source #

File: themes/ld30/templates/focus/index.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash-focus-content-content-after action.
 */
add_action(
	'learndash-focus-content-content-after',
	function( $course_id, $user_id ) {
		// May add any custom logic using $course_id, $user_id

	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
4.3.0 This hook has been deprecated.
3.1.4 Introduced. This hook has been deprecated.