glowlogix / wp-frontend-profile

WP Frontend Profile allows users to edit/view their profile and register/login without going into the dashboard to do so.
https://wordpress.org/plugins/wp-front-end-profile/
GNU General Public License v2.0
17 stars 20 forks source link

Correct Checkbox value #61

Closed sebastienserre closed 3 years ago

sebastienserre commented 3 years ago

The options set in wpfepfields$tab_id filter are not took in consideration. Now they are.

In

public function add_project_field( $fields ) {
        $fields[] = array(
            'id'      => 'testing_field',
            'label'   => 'Testing',
            'desc'    => 'Just testing.',
            'type'    => 'checkbox',
            'options' => array(
                array( 'value' => 'value1', 'name' => 'Name 1' ),
                array( 'value' => 'value2', 'name' => 'Name 2' ),
            ),
            'classes' => 'testing',
        );

        return $fields;
    }

the checkbox generated didnot use:

            'options' => array(
                array( 'value' => 'value1', 'name' => 'Name 1' ),
                array( 'value' => 'value2', 'name' => 'Name 2' ),
            ),