| @@ -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 | /** |