Support Forum ยป User Profile

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: โœ…How to get user meta from custom table? #11539
    todd m youngtodd m young
    Participant

    Excellent, thank you.
    Some users may be interested in my little function:

    function mb_customtable_getRow($object_id, $table_name){
        $ra =  MB_Custom_Table_Cache::get( $object_id, $table_name );   
        foreach($ra as $k=>$v){
            $newra[$k] = maybe_unserialize( $v );//this is a wp func.
        }
        return $newra;
    }
    in reply to: โœ…How to get user meta from custom table? #11517
    todd m youngtodd m young
    Participant

    Yes! That worked, thank you ๐Ÿ™‚

    Is there a function to retrieve all metabox fields, from a custom table? (in this case for a User, but I was wondering about posts as well)

Viewing 2 posts - 1 through 2 (of 2 total)