• naranili

    (@naranili)


    I need some help on using the action “woocommerce_admin_key_fields”.

    With this it’s possible to add some new fields to the API-Keys form.

    But how could i validate and save this additional fields ?

    I didn’t found a filter or actions for this.

    Thanks for your help.

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Claudio Sanches

    (@claudiosanches)

    We save using AJAX, but we don’t allow to add new fields, since we have a strict database for the REST API Keys.
    But you can add fields and save using AJAX too, before or after we fire our AJAX call.

    Thread Starter naranili

    (@naranili)

    I need to add a discount rate for each API key, so i can calculate a reduced price for my clients with the filter ‘woocommerce_api_product_response’.

    And it would be nicer if everything is in one form.

    Currently i added a field to the user profile for this.

    Is there a filter or action to work on this AJAX calls ?

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    You can do it based on the user and not in the key.

    Is there a filter or action to work on this AJAX calls ?

    No, since the idea is to keep only that fields.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help on useing the action "woocommerce_admin_key_fields"’ is closed to new replies.