Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/18/2009 10:32:07 AM (18 years ago)
Author:
apeatling
Message:

Added proper fullname saving support to fetch fullname function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r1224 r1230  
    966966                return false;
    967967        }
     968       
     969        function get_id_from_name( $field_name ) {
     970                global $wpdb, $bp;
     971               
     972                return $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $field_name ) );
     973        }
    968974}
    969975
Note: See TracChangeset for help on using the changeset viewer.