| @@ -2,11 +2,8 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Defines the functions which called by hooks |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -// add_action( 'in_admin_footer', 'learn_press_footer_advertisement', - 10 ); | |
| 7 | -add_action( 'admin_footer', 'learn_press_footer_advertisement', - 10 ); | |
| 8 | - | |
| 9 | 6 | /***************************************/ |
| 10 | 7 | |
| 11 | 8 | /** |
| 12 | 9 | * Filter post types the user can access in admin |
| @@ -217,14 +214,14 @@ | ||
| 217 | 214 | 'name' => esc_html__( 'Courses', 'learnpress' ), |
| 218 | 215 | 'id' => 'edit-lp_course', |
| 219 | 216 | ), |
| 220 | 217 | 20 => array( |
| 221 | - 'link' => 'edit-tags.php?taxonomy=course_category&post_type=lp_course', | |
| 218 | + 'link' => 'edit-tags.php?taxonomy=course_category', | |
| 222 | 219 | 'name' => esc_html__( 'Categories', 'learnpress' ), |
| 223 | 220 | 'id' => 'edit-course_category', |
| 224 | 221 | ), |
| 225 | 222 | 30 => array( |
| 226 | - 'link' => 'edit-tags.php?taxonomy=course_tag&post_type=lp_course', | |
| 223 | + 'link' => 'edit-tags.php?taxonomy=course_tag', | |
| 227 | 224 | 'name' => esc_html__( 'Tags', 'learnpress' ), |
| 228 | 225 | 'id' => 'edit-course_tag', |
| 229 | 226 | ), |
| 230 | 227 | |
| @@ -299,12 +296,6 @@ | ||
| 299 | 296 | echo 'error'; |
| 300 | 297 | wp_die(); |
| 301 | 298 | } |
| 302 | 299 | } |
| 303 | -add_action( 'wp_ajax_lp_remove_admin_warning', 'lp_remove_admin_warning' ); | |
| 304 | - | |
| 305 | -// 3.3.0 | |
| 306 | -function learn_press_fill_in_blanks_admin_editor( $question ) { | |
| 307 | - learn_press_admin_view( 'question/fill-in-blanks', array( 'question' => $question ) ); | |
| 308 | -} | |
| 309 | -add_action( 'learn-press/question-admin-editor', 'learn_press_fill_in_blanks_admin_editor' ); | |
| 300 | +//add_action( 'wp_ajax_lp_remove_admin_warning', 'lp_remove_admin_warning' ); | |
| 310 | 301 | |