Changeset 7860 for trunk/bp-core/bp-core-functions.php
- Timestamp:
- 02/12/2014 09:27:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r7809 r7860 1054 1054 * Plugin authors should use BP's _user_meta() functions, which bakes in 1055 1055 * bp_get_user_meta_key(): 1056 * $ last_active = bp_get_user_meta( $user_id, 'last_activity', true );1056 * $friend_count = bp_get_user_meta( $user_id, 'total_friend_count', true ); 1057 1057 * If you must use WP's _user_meta() functions directly for some reason, you 1058 1058 * should use this function to determine the $key parameter, eg 1059 * $ last_active = get_user_meta( $user_id, bp_get_user_meta_key( 'last_activity' ), true );1059 * $friend_count = get_user_meta( $user_id, bp_get_user_meta_key( 'total_friend_count' ), true ); 1060 1060 * If using the WP functions, do not not hardcode your meta keys. 1061 1061 *
Note: See TracChangeset
for help on using the changeset viewer.