Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • slastik
    Participant

    @slastik

    My attempt at fixing it:

    `// define the bp_after_registration_submit_buttons callback
    function action_bp_after_registration_submit_buttons($field_id, $value) {
    // make action magic happen here…

    wp_insert_post(
    array ( ‘post_type’ => ‘bp_groups’,
    ‘post_title’ => $_POST[‘field_12’][‘value’],
    ‘post_content’ => ‘This is a description’,
    ‘post_status’ => ‘publish’,
    )
    );

    };

    // add the action
    add_action( ‘bp_after_registration_submit_buttons’, ‘action_bp_after_registration_submit_buttons’, 10, 0 );

Viewing 1 replies (of 1 total)
Skip to toolbar