Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Set the user language to French (France)
- *
- * @author Louis-Marie Matthews
- */
- setcookie( 'dt_user_language', 'fr_FR', strtotime( '+30 days' ), '/' );
- wp_redirect( home_url() );
- exit;
Add Comment
Please, Sign In to add comment