• Resolved Rhand

    (@rhand)


    I used

    /**
     * Simple checkout field addition example.
     * 
     * @param  array $fields List of existing billing fields.
     * @return array         List of modified billing fields.
     */
    function jeroensormani_add_checkout_fields( $fields ) {
      $fields['billing_FIELD_ID'] = array(
          'label'        => __( 'FIELD LABEL' ),
          'type'        => 'text',
          'class'        => array( 'form-row-wide' ),
          'priority'     => 35,
          'required'     => true,
      );
    
      return $fields;
    }
    add_filter( 'woocommerce_billing_fields', 'jeroensormani_add_checkout_fields' );

    to add a test field. Now I want to remove it. How do I do this without actually going into the database?

    • This topic was modified 5 years ago by Rhand.
Viewing 1 replies (of 1 total)
  • Thread Starter Rhand

    (@rhand)

    Never mind. Temporary insanity. Was updating mu-plugin in the wrong location. Correct location was still loading this old filter. All good now and extra billing field is no longer loaded on checkout.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove custom field added to checkout’ is closed to new replies.