PluginProbe
Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on / trunk
Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on vtrunk
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 trunk, at SmackImportUserInstall.php

69 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 public $plugin;
17 private static $db_updates = array();
18 /**
19 * SmackCSVInstall Constructor
20 */
21 public function __construct() {
22 $this->plugin = Plugin::getInstance();
23 }
24
25 /**
26 * SmackCSVInstall Instance
27 */
28 public static function getInstance() {
29 if ( null == self::$instance ) {
30 self::$instance = new self;
31 self::$smack_instance = new UserInstall();
32 }
33 return self::$instance;
34 }
35
36 /**
37 * @param $links
38 *
39 * @return array
40 */
41 public function smack_uci_action_links( $links ) {
42 $links[] = '<a href="'. esc_url( get_admin_url(null, 'admin.php?page=sm-uci-settings') ) .'">Settings</a>';
43 $links[] = '<a href="http://wp-buddy.com" target="_blank">More plugins by WP-Buddy</a>';
44 return $links;
45 }
46
47 /**
48 * Show row meta on the plugin screen.
49 *
50 * @param mixed $links Plugin Row Meta
51 * @param mixed $file Plugin Base file
52 * @return array
53 */
54 public function plugin_row_meta( $links, $file ) {
55 $active_plugins = get_option('active_plugins');
56 if(in_array('wp-ultimate-csv-importer/wp-ultimate-csv-importer.php', $active_plugins)){
57 return $links;
58 }
59 else{
60 $row_meta = array(
61 '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>'
62 );
63
64 return array_merge( $row_meta, $links );
65 }
66 }
67
68 }
69