Browse: Home / Hooks /

learndash-infobar-inside-before

do_action( 'learndash-infobar-inside-before',  string|false $post_type,  int $course_id,  int $user_id )

Fires inside the infobar (before).


Description #


Parameters #

$post_type

(string|false) Post type slug.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/modules/infobar.php


Examples #

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

 <?php
/**
 * Example usage for learndash-infobar-inside-before action.
 */
add_action(
	'learndash-infobar-inside-before',
	function( $post_type, $course_id, $user_id ) {
		// May add any custom logic using $post_type, $course_id, $user_id

	},
	10,
	3
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.