name = 'fea_plans'; $this->label = __( 'Plans', 'frontend-admin' ); $this->category = 'relational'; $this->public = false; $this->defaults = array( 'allow_null' => 0, 'multiple' => 0, 'return_format' => 'object', 'ui' => 1, 'add_plan' => 0, 'edit_plans' => 0, ); } /* * render_field() * * Create the HTML interface for your field * * @param $field - an array holding all the field's data * * @type action * @since 3.6 * @date 23/01/13 */ function render_field( $field ) { // convert $field['value'] = acf_get_array( $field['value'] ); $plans = fea_instance()->plans_handler->get_plans(); $choices = []; ?>