Function Reference: geodir_get_user_favourites
Summary
Get the array of user favourites.
Parameters
- $user_id
- (string) (required)
- Default: None
Return Values
- (mixed)
Change Log
Since: 1.6.24
Source File
geodir_get_user_favourites() is located in geodirectory-functions/user_functions.php [Line: 172]
Source Code
function geodir_get_user_favourites($user_id=''){
if(!$user_id){$user_id = get_current_user_id();}
$site_id = '';
if ( is_multisite() ) {
$blog_id = get_current_blog_id();
if($blog_id && $blog_id!='1'){$site_id = '_' . $blog_id ;}
}
return get_user_meta($user_id, 'gd_user_favourite_post'.$site_id, true);
}