Browse: Home / Hooks /

learndash-content-tabs-before

do_action( 'learndash-content-tabs-before',  int|false $post_id,  int $course_id,  int $user_id )

Fires before the content tabs.


Description #


Parameters #

$post_id

(int|false) Post ID.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

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


Examples #

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

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

	},
	10,
	3
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.