$url = $_SERVER['REQUEST_URI'];// checking if we are not in home pageif($url !='/'){// getting language from url
$lang = $url[1]. $url[2];// excluding the persian languageif( $lang !='fa'){
add_filter('option_active_plugins',function( $plugins ){// disable the jalali date plugin or whatever...
$not_allowed = array('wp-shamsi/wp-shamsi.php');return array_values( array_diff( $plugins, $not_allowed ));});}}
دو زبانه کردن سایت با polylang و استفاده از parsidate برای تاریخ فارسی
در بسته پارسی ساز
ارسال شده در
سلام
کدی که من نوشتم و جواب گرفتم این هست: