Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src/helpers/schema
File: language-helper.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Helpers\Schema;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Class Language_Helper.
[5] Fix | Delete
*/
[6] Fix | Delete
class Language_Helper {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Adds the `inLanguage` property to a Schema piece.
[10] Fix | Delete
*
[11] Fix | Delete
* Must use one of the language codes from the IETF BCP 47 standard. The
[12] Fix | Delete
* language tag syntax is made of one or more subtags separated by a hyphen
[13] Fix | Delete
* e.g. "en", "en-US", "zh-Hant-CN".
[14] Fix | Delete
*
[15] Fix | Delete
* @param array $data The Schema piece data.
[16] Fix | Delete
*
[17] Fix | Delete
* @return array The Schema piece data with added language property
[18] Fix | Delete
*/
[19] Fix | Delete
public function add_piece_language( $data ) {
[20] Fix | Delete
/**
[21] Fix | Delete
* Filter: 'wpseo_schema_piece_language' - Allow changing the Schema piece language.
[22] Fix | Delete
*
[23] Fix | Delete
* @api string $type The Schema piece language.
[24] Fix | Delete
*/
[25] Fix | Delete
$data['inLanguage'] = \apply_filters( 'wpseo_schema_piece_language', \get_bloginfo( 'language' ), $data );
[26] Fix | Delete
[27] Fix | Delete
return $data;
[28] Fix | Delete
}
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function