Browse: Home / Functions /

learndash_get_wrapper_class

learndash_get_wrapper_class( int|WP_Post $post = null )

Gets the Learndash content wrapper CSS class.


Description #

Filterable function to add a class to all LearnDash content, allows conditional adding of additional classes


Parameters #

$post

(int|WP_Post) (Optional) WP_Post object or post ID. Default to global $post.

Default value: null


Return #

(string) Wrapper CSS class.


Source #

File: themes/ld30/includes/helpers.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.