X7ROOT File Manager
Current Path:
/home/notabjze/tailoredplastiq.com/wp-content/plugins/wordpress-seo/inc
home
/
notabjze
/
tailoredplastiq.com
/
wp-content
/
plugins
/
wordpress-seo
/
inc
/
ðŸ“
..
📄
class-addon-manager.php
(26.07 KB)
📄
class-my-yoast-api-request.php
(4.77 KB)
📄
class-post-type.php
(3.89 KB)
📄
class-rewrite.php
(7.58 KB)
📄
class-upgrade-history.php
(3.04 KB)
📄
class-upgrade.php
(54.83 KB)
📄
class-wpseo-admin-bar-menu.php
(26.55 KB)
📄
class-wpseo-content-images.php
(2.62 KB)
📄
class-wpseo-custom-fields.php
(1.73 KB)
📄
class-wpseo-custom-taxonomies.php
(1.59 KB)
📄
class-wpseo-image-utils.php
(15.09 KB)
📄
class-wpseo-installation.php
(1.11 KB)
📄
class-wpseo-meta.php
(34.16 KB)
📄
class-wpseo-primary-term.php
(1.7 KB)
📄
class-wpseo-rank.php
(7.37 KB)
📄
class-wpseo-replace-vars.php
(51.41 KB)
📄
class-wpseo-replacement-variable.php
(1.34 KB)
📄
class-wpseo-shortlinker.php
(1.11 KB)
📄
class-wpseo-statistics.php
(1.41 KB)
📄
class-wpseo-utils.php
(28.53 KB)
📄
class-yoast-dynamic-rewrites.php
(5.24 KB)
📄
date-helper.php
(1.71 KB)
ðŸ“
exceptions
📄
index.php
(38 B)
📄
interface-wpseo-wordpress-ajax-integration.php
(294 B)
📄
interface-wpseo-wordpress-integration.php
(348 B)
📄
language-utils.php
(1.28 KB)
ðŸ“
options
ðŸ“
sitemaps
📄
wpseo-functions-deprecated.php
(68 B)
📄
wpseo-functions.php
(9 KB)
📄
wpseo-non-ajax-functions.php
(1.56 KB)
Editing: language-utils.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Internals * @since 5.9.0 */ /** * Group of language utility methods for use by WPSEO. * All methods are static, this is just a sort of namespacing class wrapper. */ class WPSEO_Language_Utils { /** * Returns the language part of a given locale, defaults to english when the $locale is empty. * * @param string|null $locale The locale to get the language of. * * @return string The language part of the locale. */ public static function get_language( $locale = null ) { $language = 'en'; if ( empty( $locale ) || ! is_string( $locale ) ) { return $language; } $locale_parts = explode( '_', $locale ); if ( ! empty( $locale_parts[0] ) && ( strlen( $locale_parts[0] ) === 2 || strlen( $locale_parts[0] ) === 3 ) ) { $language = $locale_parts[0]; } return $language; } /** * Returns the full name for the sites' language. * * @return string The language name. */ public static function get_site_language_name() { require_once ABSPATH . 'wp-admin/includes/translation-install.php'; $translations = wp_get_available_translations(); $locale = get_locale(); $language = isset( $translations[ $locale ] ) ? $translations[ $locale ]['native_name'] : 'English (US)'; return $language; } }
Upload File
Create Folder