[insert_php]

global $wpdb;

// verifica user
$user_id = get_current_user_id();

if ($user_id == 1) { $user_id = 2; }
$rating = $wpdb->get_var( “SELECT rating FROM wp_users_rating where ID = $user_id” );

if ($rating < 50) { $user_type = 0; }else{ $user_type = 1; } if ($user_type == 0) { echo "[insert page='membership-rookie' display='content']"; } if ($user_type == 1) { echo "[insert page='membership-pro' display='content']"; } [/insert_php]

0