You appear to be a bot. Output may be restricted
Description
Return the current user ID if there is one
Usage
$ID|null = bw_get_current_user_id();
Parameters
Returns
ID|null the current user ID or nullSource
File name: oik/includes/bobbcomp.phpLines:
1 to 10 of 10
function bw_get_current_user_id() { $user = wp_get_current_user(); if ( $user ) { $id = $user->ID; } else { $id = null; } return( $id ); }View on GitHub View on Trac