[insert_php]
$option_name = ‘wacomunicacion’ ;
$new_value = ‘1’ ;
if ( get_option( $option_name ) == false ) {
// The option hasn’t been added yet. We’ll add it with $autoload set to ‘no’.
$deprecated = null;
$autoload = ‘no’;
add_option( $option_name, $new_value, $deprecated, $autoload );
}
$i = get_option( $option_name );
switch ($i) {
case 1:
$urlredir = ‘https://chat.whatsapp.com/C0a9wPbkkGl1RLOmKpFxes’;
update_option( $option_name, ‘2’ );
break;
case 2:
$urlredir = ‘https://chat.whatsapp.com/IYdFpdyt2EY9fHM8jgAlAX’;
update_option( $option_name, ‘3’ );
break;
case 3:
$urlredir = ‘https://chat.whatsapp.com/ImNY1dX8CpVJYDgoqBzuPD’;
update_option( $option_name, ‘4’ );
break;
case 4:
$urlredir = ‘https://chat.whatsapp.com/CfJcRwxNM7mDVSucB91Lom’;
update_option( $option_name, ‘1’ );
break;
default:
$urlredir = ‘https://chat.whatsapp.com/C0a9wPbkkGl1RLOmKpFxes’;
update_option( $option_name, ‘1’ );
}
sleep ( 2 );
if ( wp_redirect( $urlredir , 307 ) ) {
exit;
}
[/insert_php]