Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Creating xProfiles using functions.php

@hardeepasrani

Participant

This isn’t doing the job either:

function field_xprofile_twitter()
{

$group_args = array(
     'name' => 'Social Networks'
     );
$group_id = xprofile_insert_field_group( $group_args ); // group's ID

xprofile_insert_field( $xfield_args );
$xfield_args =  array (
           field_group_id  => $group_id,
           name            => 'Twitter',
           can_delete      => false,
           field_order  => 1,
           is_required     => false,
           type            => 'textbox'
    );
}
Skip to toolbar