$current_user = wp_get_current_user();. 2. if ( 0 == $current_user->ID ) {. 3. // Not logged in. 4. } else {. 5. // Logged in.
確定! 回上一頁