HEX
Server: LiteSpeed
System: Linux rocket-da1.hostsila.org 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User: pvowtcbu (1561)
PHP: 8.1.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/pvowtcbu/public_html/wp-content/plugins/head-footer-code/uninstall.php
<?php
/**
 * Routine to fully uninstall Head & Footer Code plugin.
 *
 * @package   Head_Footer_Code
 * @author    Aleksandar Urošević
 * @link      https://urosevic.net
 * @link      https://www.techwebux.com
 * @since     1.0.5
 */

// If uninstall is not called from WordPress, exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit();
}

$auhfc_options = array(
	'auhfc_settings',
	'auhfc_settings_sitewide',
	'auhfc_settings_homepage',
	'auhfc_settings_article',
	'auhfc_db_ver',
);
foreach ( $auhfc_options as $auhfc_option_name ) {
	// Delete option on single site.
	delete_option( $auhfc_option_name );
}

// Delete post meta values.
$auhfc_post_meta_key = '_auhfc';
delete_post_meta_by_key( $auhfc_post_meta_key );

// Delete category meta values.
$auhfc_category_meta_key = '_auhfc';
$auhfc_category_ids      = get_terms(
	array(
		'taxonomy' => 'category',
		'fields'   => 'ids',
		'meta_key' => $auhfc_category_meta_key,
	)
);
foreach ( $auhfc_category_ids as $auhfc_category_id ) {
	delete_term_meta( $auhfc_category_id, $auhfc_category_meta_key );
}