Server IP : 104.21.14.48 / Your IP : 18.117.145.140 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/mu-plugins/vendor/wpex/stock-photos/ |
Upload File : |
<?php /** * Plugin Name: Stock Photos * Description: Import beautiful, curated stock photos for your website * Version: 1.2.1 * Author: GoDaddy * Author URI: https://www.godaddy.com/ * License: GPL-2.0 * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: stock-photos * Domain Path: /languages * * This plugin, like WordPress, is licensed under the GPL. * Use it to make something cool, have fun, and share what you've learned with others. * * Copyright © 2016 GoDaddy Operating Company, LLC. All Rights Reserved. */ namespace WPaaS\StockPhotos; if ( ! defined( 'ABSPATH' ) ) { exit; } require __DIR__ . '/includes/class-ajax.php'; require __DIR__ . '/includes/class-api.php'; require __DIR__ . '/includes/class-import.php'; require __DIR__ . '/includes/class-scripts.php'; class Plugin { const FILE = __FILE__; public static function instance() { if ( ! is_callable( '\WPaaS\Plugin::is_wpaas' ) || ! \WPaaS\Plugin::is_wpaas() ) { return; } static $instance = null; if ( ! is_null( $instance ) ) { return $instance; } $composer_autoloader = __DIR__ . '/vendor/autoload.php'; if ( defined( 'WP_CLI' ) && WP_CLI && file_exists( $composer_autoloader ) ) { // This is for enabling codeception require_once $composer_autoloader; } load_plugin_textdomain( 'stock-photos', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); $api = new API(); $scripts = new Scripts( $api ); $import = new Import(); $ajax = new Ajax( $api, $import ); $instance = new self; return $instance; } } add_action( 'plugins_loaded', 'WPaaS\StockPhotos\Plugin::instance' );