/** * WP_Scanner_API constructor. */ public function __construct() { $this->wp_scanner = wp_scanner(); $this->url = 'https://app.wpscanner.io'; if (defined('WP_SCANNER_API_BASE')) { $this->url = WP_SCANNER_API_BASE; } add_action('wp_ajax_wp_scanner_refresh_status', array($this, 'refresh_status')); }
/** * WP_Scanner_Settings constructor. */ public function __construct() { $this->wp_scanner = wp_scanner(); $this->group = 'wp_scanner'; $this->section = 'wp_scanner_api'; $this->option_name = 'wp_scanner_settings'; $this->settings = get_option($this->option_name); add_action('admin_menu', array($this, 'register_settings_page')); add_action('admin_init', array($this, 'register_settings')); }
Domain Path: /languages/ // Copyright (c) 2016 WP Scanner. All rights reserved. // // Released under the GPL license // http://www.opensource.org/licenses/gpl-license.php // // ********************************************************************** // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // ********************************************************************** */ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } /** * WP Scanner * * @return WP_Scanner */ function wp_scanner() { require_once dirname(__FILE__) . '/classes/class-wp-scanner.php'; $version = '1.0.2'; return WP_Scanner::get_instance(__FILE__, $version); } // Initialize the plugin wp_scanner();
/** * WP_Scanner_Scan constructor. */ public function __construct() { $this->wp_scanner = wp_scanner(); add_action('wp_ajax_nopriv_wpscanner_scan', array($this, 'scan_response')); }
/** * WP_Scanner_API constructor. */ public function __construct() { $this->wp_scanner = wp_scanner(); add_action('admin_notices', array($this, 'admin_notices')); add_action('network_admin_notices', array($this, 'admin_notices')); }