Submit
Path:
~
/
home
/
getwphos
/
public_html
/
shellfish
/
wp-content
/
plugins
/
wordpress-seo
/
inc
/
File Content:
class-wpseo-custom-taxonomies.php
<?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; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
exceptions
---
0755
options
---
0755
sitemaps
---
0755
class-addon-manager.php
26693 bytes
0644
class-my-yoast-api-request.php
4890 bytes
0644
class-post-type.php
3986 bytes
0644
class-rewrite.php
7761 bytes
0644
class-upgrade-history.php
3126 bytes
0644
class-upgrade.php
56143 bytes
0644
class-wpseo-admin-bar-menu.php
27131 bytes
0644
class-wpseo-content-images.php
2684 bytes
0644
class-wpseo-custom-fields.php
1766 bytes
0644
class-wpseo-custom-taxonomies.php
1628 bytes
0644
class-wpseo-image-utils.php
15453 bytes
0644
class-wpseo-installation.php
1139 bytes
0644
class-wpseo-meta.php
34960 bytes
0644
class-wpseo-primary-term.php
1739 bytes
0644
class-wpseo-rank.php
7350 bytes
0644
class-wpseo-replace-vars.php
52681 bytes
0644
class-wpseo-replacement-variable.php
1375 bytes
0644
class-wpseo-shortlinker.php
1132 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-wpseo-utils.php
29216 bytes
0644
class-yoast-dynamic-rewrites.php
5361 bytes
0644
date-helper.php
1752 bytes
0644
index.php
38 bytes
0644
interface-wpseo-wordpress-ajax-integration.php
294 bytes
0644
interface-wpseo-wordpress-integration.php
348 bytes
0644
language-utils.php
1313 bytes
0644
wpseo-functions-deprecated.php
68 bytes
0644
wpseo-functions.php
9218 bytes
0644
wpseo-non-ajax-functions.php
1593 bytes
0644
N4ST4R_ID | Naxtarrr