PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 All 142 releases
← All changes | inc/curds/class-lp-lesson-curd.php +2 -2 4.1.6.9.3 → 4.4.10 View file →
@@ -96,9 +96,9 @@
96 96 * @return mixed|WP_Error
97 97 */
98 98 public function duplicate( &$lesson_id, $args = array() ) {
99 99 if ( ! $lesson_id ) {
100 - return new WP_Error( '0', 'Op! ID not found' );
100 + return new WP_Error( '0', 'Oops! ID not found' );
101 101 }
102 102
103 103 if ( get_post_type( $lesson_id ) != LP_LESSON_CPT ) {
104 104 return new WP_Error( '1', 'Op! The lesson does not exist' );
@@ -116,9 +116,9 @@
116 116 if ( ! $new_lesson_id || is_wp_error( $new_lesson_id ) ) {
117 117 return new WP_Error( '3', 'Sorry! Failed to duplicate lesson!' );
118 118 }
119 119
120 - do_action( 'learn-press/after-duplicate', $lesson_id, $new_lesson_id, $args );
120 + do_action( 'learn-press/item/after-duplicate', $lesson_id, $new_lesson_id, $args );
121 121 return $new_lesson_id;
122 122 }
123 123
124 124 /**