|
12 | 12 | * Plugin Name: Export User Data |
13 | 13 | * Plugin URI: http://qstudio.us/releases/export-user-data |
14 | 14 | * Description: Export User data and metadata. |
15 | | - * Version: 2.2.3 |
| 15 | + * Version: 2.2.4 |
16 | 16 | * Author: Q Studio |
17 | 17 | * Author URI: https://qstudio.us |
18 | 18 | * License: GPL-2.0+ |
|
50 | 50 | require_once __DIR__ . '/vendor/PHP_XLSXWriter/xlsxwriter.class.php'; |
51 | 51 |
|
52 | 52 | // get plugin instance ## |
53 | | -$plugin = plugin::get_instance(); |
| 53 | +$_plugin = plugin::get_instance(); |
54 | 54 |
|
55 | 55 | // validate instance ## |
56 | | -if( ! ( $plugin instanceof \q\eud\plugin ) ) { |
| 56 | +if( ! ( $_plugin instanceof \q\eud\plugin ) ) { |
57 | 57 |
|
58 | 58 | error_log( 'Error in Export User Data plugin instance' ); |
59 | 59 |
|
|
63 | 63 | } |
64 | 64 |
|
65 | 65 | // fire hooks - build log, helper and config objects and translations ## |
66 | | -\add_action( 'init', function() use( $plugin ){ |
| 66 | +\add_action( 'init', function() use( $_plugin ){ |
67 | 67 |
|
68 | 68 | // set text domain on init hook ## |
69 | | - \add_action( 'init', [ $plugin, 'load_plugin_textdomain' ], 1 ); |
| 69 | + \add_action( 'init', [ $_plugin, 'load_plugin_textdomain' ], 1 ); |
70 | 70 |
|
71 | 71 | // check debug settings ## |
72 | | - \add_action( 'plugins_loaded', [ $plugin, 'debug' ], 11 ); |
| 72 | + \add_action( 'plugins_loaded', [ $_plugin, 'debug' ], 11 ); |
73 | 73 |
|
74 | 74 | }, 0 ); |
75 | 75 |
|
76 | 76 | // build export object ## |
77 | | -$export = new eud\core\export( $plugin ); |
| 77 | +$_export = new eud\core\export( $_plugin ); |
78 | 78 |
|
79 | 79 | // build filters object ## |
80 | | -$filters = new eud\core\filters( $plugin ); |
| 80 | +$_filters = new eud\core\filters( $_plugin ); |
81 | 81 |
|
82 | 82 | // build user object ## |
83 | | -$user = new eud\core\user( $plugin ); |
| 83 | +$_user = new eud\core\user( $_plugin ); |
84 | 84 |
|
85 | 85 | // build admin object ## |
86 | | -$admin = new eud\admin\render( $plugin, $user ); |
| 86 | +$_admin = new eud\admin\render( $_plugin, $_user ); |
87 | 87 |
|
88 | 88 | // build buddypress object ## |
89 | | -// $buddypress = new eud\core\buddypress(); |
| 89 | +// $_buddypress = new eud\core\buddypress( $_plugin ); |
90 | 90 |
|
91 | 91 | if ( \is_admin() ){ |
92 | 92 |
|
93 | 93 | // run export ## |
94 | | - \add_action( 'admin_init', [ $export, 'render' ], 1000003 ); |
| 94 | + \add_action( 'admin_init', [ $_export, 'render' ], 1000003 ); |
95 | 95 |
|
96 | 96 | // load BP ## |
97 | | - // \add_action( 'admin_init', [ $buddypress, 'load' ], 1000001 ); |
| 97 | + // \add_action( 'admin_init', [ $_buddypress, 'load' ], 1000001 ); |
98 | 98 |
|
99 | 99 | // EUD - filter key shown ## |
100 | | - \add_filter( 'q/eud/admin/display_key', [ $filters, 'display_key' ], 1, 1 ); |
| 100 | + \add_filter( 'q/eud/admin/display_key', [ $_filters, 'display_key' ], 1, 1 ); |
101 | 101 |
|
102 | 102 | // user option ## |
103 | | - \add_action( 'admin_init', [ $user, 'load' ], 1000002 ); |
| 103 | + \add_action( 'admin_init', [ $_user, 'load' ], 1000002 ); |
104 | 104 |
|
105 | 105 | // add export menu inside admin ## |
106 | | - \add_action( 'admin_menu', [ $admin, 'add_menu' ] ); |
| 106 | + \add_action( 'admin_menu', [ $_admin, 'add_menu' ] ); |
107 | 107 |
|
108 | 108 | // UI style and functionality ## |
109 | | - \add_action( 'admin_enqueue_scripts', [ $admin, 'admin_enqueue_scripts' ], 1 ); |
110 | | - \add_action( 'admin_footer', [ $admin, 'jquery' ], 100000 ); |
111 | | - \add_action( 'admin_footer', [ $admin, 'css' ], 100000 ); |
| 109 | + \add_action( 'admin_enqueue_scripts', [ $_admin, 'admin_enqueue_scripts' ], 1 ); |
| 110 | + \add_action( 'admin_footer', [ $_admin, 'jquery' ], 100000 ); |
| 111 | + \add_action( 'admin_footer', [ $_admin, 'css' ], 100000 ); |
112 | 112 |
|
113 | 113 | } |
0 commit comments