I am looking for a function to check if a user is logged into wordpress via their id.
i am aware of this function.
if ( is_user_logged_in() ) { echo
you can go around it like:
if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); if ( 1 == $current_user->ID ) { // do staff. } else { // do staff. } }