📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-04 06:11:54
📂
/ (Root)
/
home
/
orkouolp
/
web
/
orkofarms.com
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
theme-builder
/
conditions
📍 /home/orkouolp/web/orkofarms.com/wp-content/plugins/elementor-pro/modules/theme-builder/conditions
🔄 Refresh
✏️
Editing: any-child-of-term.php
Writable
<?php namespace ElementorPro\Modules\ThemeBuilder\Conditions; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Any_Child_Of_Term extends Child_Of_Term { private $taxonomy; public function get_name() { return 'any_child_of_' . $this->taxonomy->name; } public function get_label() { /* translators: %s: Singular taxonomy label. */ return sprintf( esc_html__( 'Any child %s of', 'elementor-pro' ), $this->taxonomy->labels->singular_name ); } public function __construct( $data ) { parent::__construct( $data ); $this->taxonomy = $data['object']; } public function check( $args ) { $id = (int) $args['id']; /** * @var \WP_Term $current */ $current = get_queried_object(); if ( ! $this->is_term() || 0 === $current->parent ) { return false; } while ( $current->parent > 0 ) { if ( $id === $current->parent ) { return true; } $current = get_term_by( 'id', $current->parent, $current->taxonomy ); } return $id === $current->parent; } }
💾 Save Changes
❌ Cancel