/
home
/
techb158
/
public_html
/
wp-content
/
plugins
/
wordpress-seo
/
inc
/
/home/techb158/public_html/wp-content/plugins/wordpress-seo/inc
mkdir
upload
Name
Size
Mode
Actions
exceptions/
-
0755
rm
options/
-
0755
rm
sitemaps/
-
0755
rm
class-addon-manager.php
27180
0644
edit
dl
rm
class-my-yoast-api-request.php
5518
0644
edit
dl
rm
class-post-type.php
3986
0644
edit
dl
rm
class-rewrite.php
7763
0644
edit
dl
rm
class-upgrade-history.php
3118
0644
edit
dl
rm
class-upgrade.php
56628
0644
edit
dl
rm
class-wpseo-admin-bar-menu.php
29536
0644
edit
dl
rm
class-wpseo-content-images.php
2655
0644
edit
dl
rm
class-wpseo-custom-fields.php
2489
0644
edit
dl
rm
class-wpseo-custom-taxonomies.php
1630
0644
edit
dl
rm
class-wpseo-image-utils.php
15391
0644
edit
dl
rm
class-wpseo-installation.php
1201
0644
edit
dl
rm
class-wpseo-meta.php
38060
0644
edit
dl
rm
class-wpseo-primary-term.php
1739
0644
edit
dl
rm
class-wpseo-rank.php
7560
0644
edit
dl
rm
class-wpseo-replace-vars.php
52699
0644
edit
dl
rm
class-wpseo-replacement-variable.php
1375
0644
edit
dl
rm
class-wpseo-shortlinker.php
1132
0644
edit
dl
rm
class-wpseo-statistics.php
1443
0644
edit
dl
rm
class-wpseo-utils.php
29702
0644
edit
dl
rm
class-yoast-dynamic-rewrites.php
5361
0644
edit
dl
rm
date-helper.php
1752
0644
edit
dl
rm
index.php
38
0644
edit
dl
rm
interface-wpseo-wordpress-ajax-integration.php
294
0644
edit
dl
rm
interface-wpseo-wordpress-integration.php
348
0644
edit
dl
rm
language-utils.php
1313
0644
edit
dl
rm
wpseo-functions-deprecated.php
68
0644
edit
dl
rm
wpseo-functions.php
9218
0644
edit
dl
rm
wpseo-non-ajax-functions.php
1593
0644
edit
dl
rm
Edit:
/home/techb158/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-custom-taxonomies.php
(1630B)
<?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; } }
Save
cmd:
run