I know when I want to save data in database, I must sanitize data but what about following case which is a simple comparison. Should I sanitize? if ( ! isset( $_GET[‘page’] ) ) { return; } if ( ‘google’ === $_GET[‘page’] ) { wp_redirect( ‘https://google.com’ ); exit; } if ( ‘facebook’ === $_GET[‘page’] ) { wp_redirect( ‘https://facebook.com’ ); exit; } This is only a snippet of a WordPress Website Design Article written by user3631047 Read Full Article