Browse: Home / Functions /

learndash_new_step_insert

learndash_new_step_insert( int $post_id,  object $post,  bool $update )

Handler function when a new course step is inserted.


Description #

This function exists to handle inserted post steps external to LearnDash. But this function will also be triggered when adding a new step post within LearnDash.


Parameters #

$post_id

(int) (Required) Post ID.

$post

(object) (Required) WP_Post object.

$update

(bool) (Required) Whether this is an existing post being updated.


Source #

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


Changelog #

Changelog
Version Description
3.4.0.3 Introduced.