PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7.3
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7.3
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 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / inc / admin / sub-menus / class-lp-submenu-tools.php

class-lp-submenu-tools.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7.3, at inc/admin/sub-menus/class-lp-submenu-tools.php

78 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class LP_Submenu_Tools
4 */
5 class LP_Submenu_Tools extends LP_Abstract_Submenu {
6
7 /**
8 * LP_Submenu_Tools constructor.
9 */
10 public function __construct() {
11 $this->id = 'learn-press-tools';
12 $this->menu_title = __( 'Tools', 'learnpress' );
13 $this->page_title = __( 'LearnPress Tools', 'learnpress' );
14 $this->priority = 40;
15 $this->callback = [ $this, 'display' ];
16
17 $this->tabs = apply_filters(
18 'learn-press/admin/tools-tabs',
19 array(
20 'course' => __( 'Course Data', 'learnpress' ),
21 'database' => __( 'Database', 'learnpress' ),
22 'template' => __( 'Templates', 'learnpress' ),
23 )
24 );
25
26 parent::__construct();
27 //$this->_process_actions();
28 }
29
30 /**
31 * @deprecated 4.1.7.3
32 */
33 protected function _process_actions() {
34 _deprecated_function( __METHOD__, '4.1.7.3' );
35 /*$has_action = true;
36 switch ( LP_Request::get( 'page' ) ) {
37 default:
38 $has_action = false;
39 }
40
41 $nonce = LP_Request::get( '_wpnonce' );
42
43 if ( LP_Request::get( 'generate-cron-url' ) && $nonce ) {
44 if ( wp_verify_nonce( $nonce ) ) {
45 delete_option( 'learnpress_cron_url_nonce' );
46
47 wp_redirect( esc_url_raw( remove_query_arg( array( 'generate-cron-url', '_wpnonce' ) ) ) );
48 die();
49 }
50 }
51
52 if ( $has_action ) {
53 die();
54 }*/
55 }
56
57 public function page_content_database() {
58 learn_press_admin_view( 'tools/html-database' );
59 }
60
61 public function page_content_template() {
62 learn_press_admin_view( 'tools/html-template' );
63 }
64
65 public function page_content_course() {
66 learn_press_admin_view( 'tools/html-course' );
67 }
68
69 /**
70 * Display page
71 */
72 public function page_content() {
73 parent::page_content();
74 }
75 }
76
77 return new LP_Submenu_Tools();
78