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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 );
Changelog #
Version | Description |
---|---|
3.1.0 | Introduced. |