learndash_wrapper_class

apply_filters( 'learndash_wrapper_class',  string $wrapper_class,  int|object $post )

Filters LearnDash content wrapper class.


Description #


Parameters #

$wrapper_class

(string) Wrapper class.

$post

(int|object) Post ID or post object.


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash_wrapper_class filter.
 */
add_filter(
	'learndash_wrapper_class',
	function( $wrapper_class, $post ) {
		// May add any custom logic using $wrapper_class, $post.

		// Always return $wrapper_class.
		return $wrapper_class;
	},
	10,
	2
);