bp_xprofile_fullname_field_id()
Return the field ID for the Full Name xprofile field.
Description
Return
(int) Field ID.
Source
File: bp-xprofile/bp-xprofile-functions.php
function bp_xprofile_fullname_field_id() { $id = wp_cache_get( 'fullname_field_id', 'bp_xprofile' ); if ( false === $id ) { global $wpdb; $bp = buddypress(); $id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", addslashes( bp_xprofile_fullname_field_name() ) ) ); wp_cache_set( 'fullname_field_id', $id, 'bp_xprofile' ); } return absint( $id ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.