PluginProbe
Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on / 1.2.2
Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on v1.2.2
2.0 1.7.1 1.2.9 1.3 1.4 1.4.1 1.4.2 1.4.3 1.5 1.6 1.7 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8
← All changes | import-users.php +7 -8 1.21.2.2 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2 /********************************************************************************************
3 3 * Plugin Name: Import Users
4 4 * Description: Seamlessly create users and import from your CSV data with ease.
5 - * Version: 1.2
5 + * Version: 1.2.2
6 6 * Text Domain: Import-Users
7 7 * Domain Path: /languages
8 8 * Author: Smackcoders
9 9 * Plugin URI: https://goo.gl/kKWPui
@@ -31,9 +31,9 @@
31 31
32 32 class UserCSVHandler extends UsersImport{
33 33
34 34 private static $instance = null,$install;
35 - public $version = '1.2';
35 + public $version = '1.2.2';
36 36
37 37 public function __construct(){
38 38 $this->plugin = Plugin::getInstance();
39 39 }
@@ -42,8 +42,9 @@
42 42 if (UserCSVHandler::$instance == null) {
43 43 UserCSVHandler::$instance = new UserCSVHandler;
44 44 UserCSVHandler::$install = UserInstall::getInstance();
45 45 add_filter( 'plugin_row_meta' . plugin_basename( __FILE__ ), array(UserCSVHandler::$install, 'plugin_row_meta'), 10, 2 );
46 + add_action('plugin_action_links_' . plugin_basename( __FILE__ ), array(UserCSVHandler::$install, 'plugin_row_meta'), 10, 3);
46 47
47 48 if ( ! function_exists( 'is_plugin_active' ) ) {
48 49 require_once ABSPATH . 'wp-admin/includes/plugin.php';
49 50 }
@@ -50,21 +51,19 @@
50 51 self::init_hooks();
51 52
52 53 return UserCSVHandler::$instance;
53 54 }
54 - return UserCSVHandler::$instance;
55 + return UserCSVHandler::$instance;
55 56 }
56 57
57 58 public static function init_hooks() {
58 -
59 - add_action( 'plugins_loaded', array( self, 'init' ), 0 );
60 - add_action( 'admin_notices', self::admin_notice_importuser() );
59 + add_action( 'admin_notices', array(UserCSVHandler::$instance,'admin_notice_importuser'));
61 60 }
62 61
63 - public function admin_notice_importuser() {
62 + public static function admin_notice_importuser() {
64 63 global $pagenow;
65 64 $active_plugins = get_option( "active_plugins" );
66 - if ( $pagenow == 'plugins.php' && !in_array('wp-ultimate-csv-importer/index.php', $active_plugins) ) {
65 + if ( $pagenow == 'plugins.php' && !in_array('wp-ultimate-csv-importer/wp-ultimate-csv-importer.php', $active_plugins) ) {
67 66 ?>
68 67 <div class="notice notice-warning is-dismissible" >
69 68 <p> Import Users is an addon of <a href="https://wordpress.org/plugins/wp-ultimate-csv-importer" target="blank" style="cursor: pointer;text-decoration:none">WP Ultimate CSV Importer</a> plugin, kindly install it to continue using import users. </p>
70 69 <p>