You appear to be a bot. Output may be restricted
Description
Return the default user ID
Try the current post and if that's no good the current user (if $parm is true )
Usage
$integer = bw_default_user( $parm );
Parameters
- $parm
- ( bool/string ) optional – whether or not to attempt to retrieve the current user ID. In most cases this will be false.
Returns
integer the default user ID to use or null
Source
File name: oik/includes/bobbcomp.php
Lines:
1 to 14 of 14
function bw_default_user( $parm=false ) { $post = bw_global_post(); // bw_trace2( $post ); if ( $post ) { $id = $post->post_author; } else { if ( $parm ) { $id = bw_get_current_user_id(); } else { $id = null; } } return( $id ); }