learndash_focus_header_text_url

apply_filters( 'learndash_focus_header_text_url',  string $header_text_url,  int $course_id,  int $user_id )

Filters Focus mode header text URL.


Description #

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


Parameters #

$header_text_url

(string) Header Text URL

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_focus_header_text_url filter.
 */
add_filter(
	'learndash_focus_header_text_url',
	function( $header_text_url = '', $course_id = 0, $user_id = 0 ) {
		$header_text_url = get_home_url();

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