Browse: Home / Functions /

learndash_format_step_post_title_with_status_label

learndash_format_step_post_title_with_status_label( object $post,  array $skip_statuses = array('publish'),  string $before_label = '(',  string $after_label = ')' )

Get the post title formatted with post status label.


Description #


Parameters #

$post

(object) (Required) WP_Post object.

$skip_statuses

(array) (Optional) Array of post_stati to skip.

Default value: array('publish')

$before_label

(string) (Optional) String to prepend to the status label.

Default value: '('

$after_label

(string) (Optional) String to append to the status label.

Default value: ')'


Return #

(string) Formatted post title.


Source #

File: includes/course/ld-course-steps-functions.php


Changelog #

Changelog
Version Description
4.0.0 Introduced.