Browse: Home / Functions /

learndash_new_step_insert

learndash_new_step_insert( $post_id,  WP_Post $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

(WP_Post) (Required) 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.