Browse: Home / Functions /


learndash_the_wrapper_class( int|WP_Post|null $post = null,  string $additional_classes = '' )

Escapes and outputs the learndash_get_wrapper_class function result.

Description #

Parameters #


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

Default value: null


(string) (Optional) Additional classes to add to the wrapper.

Default value: ''

Return #

(void) Outputs the Learndash content wrapper CSS class.

Source #

File: themes/helpers.php

Changelog #

Version Description
4.6.0 Added the optional $additional_classes parameter.
3.0.0 Introduced.