. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 172.67.135.14 / Your IP :
216.73.216.221 [
Web Server : LiteSpeed System : Linux premium35.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : lasanffc ( 2331) PHP Version : 8.0.30 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/lasanffc/public_html/wp-content/plugins/wordpress-seo/inc/ |
Upload File : |
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO
*/
/**
* WPSEO_Custom_Taxonomies.
*/
class WPSEO_Custom_Taxonomies {
/**
* Custom taxonomies cache.
*
* @var array
*/
protected static $custom_taxonomies = null;
/**
* Gets the names of the custom taxonomies, prepends 'ct_' and 'ct_desc', and returns them in an array.
*
* @return array The custom taxonomy prefixed names.
*/
public static function get_custom_taxonomies() {
// Use cached value if available.
if ( ! is_null( self::$custom_taxonomies ) ) {
return self::$custom_taxonomies;
}
self::$custom_taxonomies = [];
$args = [
'public' => true,
'_builtin' => false,
];
$custom_taxonomies = get_taxonomies( $args, 'names', 'and' );
if ( is_array( $custom_taxonomies ) ) {
foreach ( $custom_taxonomies as $custom_taxonomy ) {
array_push(
self::$custom_taxonomies,
self::add_custom_taxonomies_prefix( $custom_taxonomy ),
self::add_custom_taxonomies_description_prefix( $custom_taxonomy )
);
}
}
return self::$custom_taxonomies;
}
/**
* Adds the ct_ prefix to a taxonomy.
*
* @param string $taxonomy The taxonomy to prefix.
*
* @return string The prefixed taxonomy.
*/
private static function add_custom_taxonomies_prefix( $taxonomy ) {
return 'ct_' . $taxonomy;
}
/**
* Adds the ct_desc_ prefix to a taxonomy.
*
* @param string $taxonomy The taxonomy to prefix.
*
* @return string The prefixed taxonomy.
*/
private static function add_custom_taxonomies_description_prefix( $taxonomy ) {
return 'ct_desc_' . $taxonomy;
}
}