PluginProbe
Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on / 1.4.2
Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on v1.4.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
import-users / SmackImportUserInstall.php

SmackImportUserInstall.php in Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on 1.4.2, at SmackImportUserInstall.php

68 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Import Users plugin file.
4 *
5 * Copyright (C) 2010-2020, Smackcoders Inc - info@smackcoders.com
6 */
7
8 namespace Smackcoders\SMUSERS;
9
10 if ( ! defined( 'ABSPATH' ) )
11 exit; // Exit if accessed directly
12
13 class UserInstall {
14
15 protected static $instance = null,$smack_instance,$tables_instance;
16 private static $db_updates = array();
17 /**
18 * SmackCSVInstall Constructor
19 */
20 public function __construct() {
21 $this->plugin = Plugin::getInstance();
22 }
23
24 /**
25 * SmackCSVInstall Instance
26 */
27 public static function getInstance() {
28 if ( null == self::$instance ) {
29 self::$instance = new self;
30 self::$smack_instance = new UserInstall();
31 }
32 return self::$instance;
33 }
34
35 /**
36 * @param $links
37 *
38 * @return array
39 */
40 public function smack_uci_action_links( $links ) {
41 $links[] = '<a href="'. esc_url( get_admin_url(null, 'admin.php?page=sm-uci-settings') ) .'">Settings</a>';
42 $links[] = '<a href="http://wp-buddy.com" target="_blank">More plugins by WP-Buddy</a>';
43 return $links;
44 }
45
46 /**
47 * Show row meta on the plugin screen.
48 *
49 * @param mixed $links Plugin Row Meta
50 * @param mixed $file Plugin Base file
51 * @return array
52 */
53 public function plugin_row_meta( $links, $file ) {
54 $active_plugins = get_option('active_plugins');
55 if(in_array('wp-ultimate-csv-importer/wp-ultimate-csv-importer.php', $active_plugins)){
56 return $links;
57 }
58 else{
59 $row_meta = array(
60 'install_csv_importer' => '<a style="font-weight: bold;color: #d54e21;font-size: 105%;" href="' . esc_url( apply_filters( 'install_csv_importer', 'https://wordpress.org/plugins/wp-ultimate-csv-importer/' ) ) . '" title="' . esc_attr( __( 'Install CSV Importer', 'wp-ultimate-csv-importer' ) ) . '" target="_blank">' . __( 'Install CSV Importer', 'wp-ultimate-csv-importer' ) . '</a>'
61 );
62
63 return array_merge( $row_meta, $links );
64 }
65 }
66
67 }
68