Browse: Home / Hooks /

learndash_focus_header_text

apply_filters( 'learndash_focus_header_text',  string $header_text,  int $course_id,  int $user_id )

Filters Focus mode header text. This text is used to display in place of the logo.


Description #

This filter will be called only if there is no logo set in LearnDash plugin settings.


Parameters #

$header_text

(string) Focus mode header text.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

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


Examples #

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

 <?php
/**
 * Example usage for learndash_focus_header_text filter.
 */
add_filter(
	'learndash_focus_header_text',
	function( $header_text = '', $course_id = 0, $user_id = 0 ) {
		$header_text = 'This is the header text.';

		// Always return $header_text;
		return $header_text;
	},
	30,
	3
);
 

Changelog #

Changelog
Version Description
3.1.0 Introduced.