Browse: Home / Functions /


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 #


(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 #

Version Description
3.0.0 Introduced.