learndash_transition_course_step_post_status

learndash_transition_course_step_post_status( string $new_status,  string $old_status,  WP_Post $post )

Updates the course step post status when a post is trashed or untrashed.


Description #

Fires on transition_post_status hook.


Parameters #

$new_status

(string) (Required) New post status.

$old_status

(string) (Required) Old post status.

$post

(WP_Post) (Required) The WP_Post object.


Source #

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


Changelog #

Changelog
Version Description
2.5.0 Introduced.