php - Change site language depends a page id -


i want change site language dependig page id, like:

if (is_page( $page_id )){    define('wplang','es_us'); }else{    define('wplang','he_il'); } 

when run code message: "note: wplang constant in wp-config.php file no longer needed." under site-language in settings.

is there way it?


Comments