• Resolved Ali MMirzaee

    (@ali-mmirzaee)


    Hi.

    First of all I thank you for sharing your great code, I appreciate it and I used it in many projects.

    I looked through the code and I didn’t find what action should I use for getting submitted data to options.php. I want to make a custom user registration page on admin panel that can get submitted data and save them in my own user meta fields. so I don’t want the framework save them as options in database and when we open the page of user registering all fields must be empty.

    Can I use “Admin Page Framework” for this purpose ?

    Thank you

    http://ww.wp.xz.cn/plugins/admin-page-framework/

Viewing 1 replies (of 1 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Sure. However, it’s not possible to completely prevent the framework from saving options.

    I want to make a custom user registration page on admin panel that can get submitted data and save them in my own user meta fields.

    You can use one of the validation_{...} filters and return a modified array. An example usage is written in the demo plugin. Search for the function validation_ keyword.

    If you return an empty array in the callback method, the framework considers that a reset is performed so just return a non-empty value that does not affect anything like array( 'n/a' ).

    To save the data in your desired location, just do it in the callback method for the validation_{...} filter.

    so I don’t want the framework save them as options in database and when we open the page of user registering all fields must be empty.

    Optionally, you can pass an empty string to the vValue element in your field array so that it will always be empty.

Viewing 1 replies (of 1 total)

The topic ‘Use Admin Page Framework as form creator’ is closed to new replies.