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; } }