Browse: Home / Hooks /

learndash_focus_header_logo_alt

apply_filters( 'learndash_focus_header_logo_alt',  string $logo_alt,  int $course_id,  int $user_id )

Filters Focus mode header logo alternative text.


Description #

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


Parameters #

$logo_alt

(string) Header logo alternative 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_logo_alt filter.
 */
add_filter(
	'learndash_focus_header_logo_alt',
	function( $header_logo_alt = '', $course_id = 0, $user_id = 0 ) {
		$header_log_alt = 'This is the logo alt text.';

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

Changelog #

Changelog
Version Description
3.1.0 Introduced.