API for version 10 – get option


Home Forums Front End PM PRO API for version 10 – get option

This topic is: Not Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20625
    Kyle Putnam
    Participant

    I am currently using this code under version 8:

    function fw_fep_add_group_member( $user_id, $group ){
    $groups = fep_get_option( ‘gm_groups’, array() );

    if( isset($groups[$group]) ){ // Group exists
    $members = explode( ‘,’, $groups[$group][‘members’] );
    $members[] = $user_id; //user id to add
    $groups[ $group ][‘members’] = implode( ‘,’, array_filter( array_unique( $members ) ) );
    return fep_update_option(‘gm_groups’, $groups);
    }

    return;
    }

    Will this work under version 10? Or has the API changed drastically due to using a table instead of the wp_options table.

    #20701
    Shamim Hasan
    Keymaster

    It will work in version 10.1.x also

Viewing 2 posts - 1 through 2 (of 2 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.