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 #

 <?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
);