| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | |
| 55 | 55 | do_action( 'learn-press/ajax/admin-load', __CLASS__ ); |
| 56 | 56 | |
| 57 | 57 | $ajax_events = array( |
| 58 | - 'search_items' => 'modal_search_items', | |
| 58 | + //'search_items' => 'modal_search_items', | |
| 59 | 59 | 'update-payment-order', |
| 60 | 60 | // Update ordering of payments when user changing. |
| 61 | 61 | 'update-payment-status', |
| 62 | 62 | // Enable type payment |
| @@ -61,14 +61,14 @@ | ||
| 61 | 61 | 'update-payment-status', |
| 62 | 62 | // Enable type payment |
| 63 | 63 | |
| 64 | 64 | // admin editor |
| 65 | - 'admin_course_editor', | |
| 66 | - 'admin_quiz_editor', | |
| 67 | - 'admin_question_editor', | |
| 65 | + //'admin_course_editor', | |
| 66 | + //'admin_quiz_editor', | |
| 67 | + //'admin_question_editor', | |
| 68 | 68 | 'duplicator', |
| 69 | 69 | // Duplicate course, lesson, quiz, question. |
| 70 | - 'modal_search_items', | |
| 70 | + //'modal_search_items', | |
| 71 | 71 | // Used to search courses on LP Order |
| 72 | 72 | //'modal_search_users', |
| 73 | 73 | // Used to search users on LP Order |
| 74 | 74 | 'add_items_to_order', |
| @@ -76,9 +76,9 @@ | ||
| 76 | 76 | 'remove_items_from_order', |
| 77 | 77 | // Used to remove items from LP Order |
| 78 | 78 | 'update_email_status', |
| 79 | 79 | // Use for enable email on LP Settings |
| 80 | - 'search-authors', | |
| 80 | + //'search-authors', | |
| 81 | 81 | // Used to search username on input some page (list courses, lp orders, quizzes, questions... on the Backend |
| 82 | 82 | //'skip-notice-install', |
| 83 | 83 | ); |
| 84 | 84 | |
| @@ -101,9 +101,9 @@ | ||
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * Search user on some pages on the Backend |
| 104 | 104 | */ |
| 105 | - public static function search_authors() { | |
| 105 | + /*public static function search_authors() { | |
| 106 | 106 | $args = array( |
| 107 | 107 | 'orderby' => 'name', |
| 108 | 108 | 'order' => 'ASC', |
| 109 | 109 | 'search' => sprintf( '*%s*', esc_attr( LP_Request::get_string( 'term' ) ) ), |
| @@ -127,9 +127,9 @@ | ||
| 127 | 127 | 'results' => $users, |
| 128 | 128 | ) |
| 129 | 129 | ); |
| 130 | 130 | die(); |
| 131 | - } | |
| 131 | + }*/ | |
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | 134 | * Handle ajax admin course editor. |
| 135 | 135 | * |
| @@ -134,9 +134,9 @@ | ||
| 134 | 134 | * Handle ajax admin course editor. |
| 135 | 135 | * |
| 136 | 136 | * @since 3.0.0 |
| 137 | 137 | */ |
| 138 | - public static function admin_course_editor() { | |
| 138 | + /*public static function admin_course_editor() { | |
| 139 | 139 | $editor = LP_Admin_Editor::get_editor_course(); |
| 140 | 140 | self::admin_editor( $editor ); |
| 141 | 141 | } |
| 142 | 142 | |
| @@ -144,9 +144,9 @@ | ||
| 144 | 144 | * Handle ajax admin question editor. |
| 145 | 145 | * |
| 146 | 146 | * @since 3.0.0 |
| 147 | 147 | */ |
| 148 | - public static function admin_question_editor() { | |
| 148 | + /*public static function admin_question_editor() { | |
| 149 | 149 | $editor = LP_Admin_Editor::get_editor_question(); |
| 150 | 150 | self::admin_editor( $editor ); |
| 151 | 151 | } |
| 152 | 152 | |
| @@ -154,9 +154,9 @@ | ||
| 154 | 154 | * Handle ajax admin quiz editor. |
| 155 | 155 | * |
| 156 | 156 | * @since 3.0.0 |
| 157 | 157 | */ |
| 158 | - public static function admin_quiz_editor() { | |
| 158 | + /*public static function admin_quiz_editor() { | |
| 159 | 159 | $editor = LP_Admin_Editor::get_editor_quiz(); |
| 160 | 160 | self::admin_editor( $editor ); |
| 161 | 161 | } |
| 162 | 162 | |
| @@ -164,9 +164,9 @@ | ||
| 164 | 164 | * @param LP_Admin_Editor $editor |
| 165 | 165 | * |
| 166 | 166 | * @since 3.0.2 |
| 167 | 167 | */ |
| 168 | - public static function admin_editor( &$editor ) { | |
| 168 | + /*public static function admin_editor( &$editor ) { | |
| 169 | 169 | $result = $editor->dispatch(); |
| 170 | 170 | |
| 171 | 171 | if ( is_wp_error( $result ) ) { |
| 172 | 172 | learn_press_send_json_error( $result->get_error_message() ); |
| @@ -174,9 +174,9 @@ | ||
| 174 | 174 | learn_press_send_json_error(); |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | learn_press_send_json_success( $result ); |
| 178 | - } | |
| 178 | + }*/ | |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * Duplicate course, lesson, quiz, question. |
| 182 | 182 | * |
| @@ -353,9 +353,9 @@ | ||
| 353 | 353 | |
| 354 | 354 | /** |
| 355 | 355 | * Search items by requesting params. |
| 356 | 356 | */ |
| 357 | - public static function modal_search_items() { | |
| 357 | + /*public static function modal_search_items() { | |
| 358 | 358 | $term = LP_Request::get_param( 'term' ); |
| 359 | 359 | $type = LP_Request::get_param( 'type' ); |
| 360 | 360 | $context = LP_Request::get_param( 'context' ); |
| 361 | 361 | $context_id = LP_Request::get_param( 'context_id' ); |
| @@ -390,9 +390,9 @@ | ||
| 390 | 390 | 'nav' => $search->get_pagination(), |
| 391 | 391 | 'items' => $search->get_items(), |
| 392 | 392 | ) |
| 393 | 393 | ); |
| 394 | - } | |
| 394 | + }*/ | |
| 395 | 395 | |
| 396 | 396 | /** |
| 397 | 397 | * Search items by requesting params. |
| 398 | 398 | * |