Files
branddefense.pl/wp-content/plugins/brizy/compatibilities/tp-add-on-language-by-get-parameter.php
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

21 lines
548 B
PHP

<?php
/**
* Compatibility with TranslatePress - Language by GET parameter Add-on: https://wordpress.org/plugins/sg-cachepress/
*/
class Brizy_Compatibilities_TpAddOnLanguageByGetParameter {
public function __construct() {
add_action( 'brizy_content', [ $this, 'brizy_content' ] );
}
public function brizy_content( $content ) {
add_filter( 'trp_home_url', [ $this, 'trp_home_url' ], 10, 2 );
return $content;
}
public function trp_home_url( $new_url, $abs_home ) {
return $abs_home;
}
}