Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add extended profile fields programmatically

  • Avatar of nileshkul
    nileshkul
    Participant

    @nileshkul

    how can i add custom profile fields with functions, filters and actions rather than adding them with buddypress backend options.

Viewing 1 replies (of 1 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    // Insert New Field
    xprofile_insert_field(
        array (
               'field_group_id'  => 1,
               'name'            => 'Twitter',
               'field_order'     => 1,
               'is_required'     => false,
               'type'            => 'textbox'
        )
    );
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.