PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
wordpress-seo
/
inc
<?php /** * WPSEO plugin file. * * @package WPSEO */ /** * WPSEO_Custom_Taxonomies. */ class WPSEO_Custom_Taxonomies { /** * Custom taxonomies cache. * * @var array|null */ 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 ( self::$custom_taxonomies !== null ) { 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; } }
[-] class-wpseo-content-images.php
[edit]
[-] wpseo-functions.php
[edit]
[-] date-helper.php
[edit]
[-] class-addon-manager.php
[edit]
[-] class-yoast-dynamic-rewrites.php
[edit]
[-] class-wpseo-statistics.php
[edit]
[-] class-post-type.php
[edit]
[-] class-wpseo-meta.php
[edit]
[-] class-wpseo-utils.php
[edit]
[-] index.php
[edit]
[-] class-wpseo-admin-bar-menu.php
[edit]
[-] class-wpseo-custom-fields.php
[edit]
[-] class-wpseo-shortlinker.php
[edit]
[-] class-upgrade-history.php
[edit]
[-] class-my-yoast-api-request.php
[edit]
[-] class-wpseo-replacement-variable.php
[edit]
[-] class-wpseo-installation.php
[edit]
[+]
options
[-] wpseo-non-ajax-functions.php
[edit]
[-] class-wpseo-primary-term.php
[edit]
[-] interface-wpseo-wordpress-integration.php
[edit]
[-] wpseo-functions-deprecated.php
[edit]
[-] class-rewrite.php
[edit]
[-] class-wpseo-rank.php
[edit]
[-] class-upgrade.php
[edit]
[+]
..
[-] class-wpseo-replace-vars.php
[edit]
[-] class-wpseo-custom-taxonomies.php
[edit]
[+]
exceptions
[-] language-utils.php
[edit]
[-] class-wpseo-image-utils.php
[edit]
[+]
sitemaps
[-] interface-wpseo-wordpress-ajax-integration.php
[edit]