Browse: Home / Functions /


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 #


(int) (Required) Post ID.


(object) (Required) WP_Post object.


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

Source #

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

Changelog #

Version Description Introduced.