is_profile_screen() ) { return $value; } return $this->disable(); } /** * Whether the current request is editing a user profile. * * @return bool True on profile.php or user-edit.php. */ private function is_profile_screen(): bool { if ( ! is_admin() || ! isset( $GLOBALS['pagenow'] ) ) { return false; } return in_array( $GLOBALS['pagenow'], array( 'profile.php', 'user-edit.php' ), true ); } /** * Forces Elementor's AI preference off. * * @return string Always '0'. */ public function disable(): string { return '0'; } }