Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/31/2009 09:13:23 PM (15 years ago)
Author:
apeatling
Message:

Added profile field id template tag for profile loop.

File:
1 edited

Legend:

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

    r1726 r1746  
    279279}
    280280
     281function bp_the_profile_field_id() {
     282    echo bp_get_the_profile_field_name();
     283}
     284    function bp_get_the_profile_field_id() {
     285        global $field;
     286        return apply_filters( 'bp_get_the_profile_field_id', $field->id );
     287    }
     288
    281289function bp_the_profile_field_name() {
    282290    echo bp_get_the_profile_field_name();
     
    284292    function bp_get_the_profile_field_name() {
    285293        global $field;
     294       
     295        var_dump($field);
    286296        return apply_filters( 'bp_get_the_profile_field_name', $field->name );
    287297    }
Note: See TracChangeset for help on using the changeset viewer.