- This topic has 2 replies, 2 voices, and was last updated 11 months, 1 week ago by .
-
Topic
-
Hi!
And thanks in advance for your help.
I’m trying to update a input field of a settings page, when a user click on a button in the admin (wp_ajax_ hook function).
There I generate a json (it works) but I also want to update an input value with a value.
I don’t know if I can call rwmb_set_meta in this wp_ajax_action, or if I am using the correct syntax because I’m getting a 500 error.
I have tried this:
rwmb_set_meta( ‘generalsettings’, ‘idgeneratedcdn’, ‘value’, array( ‘object_type’ => ‘setting’ ));and this
rwmb_set_meta( ‘generalsettings’, ‘idgeneratedcdn’, ‘value’);What am I doing wrong? the place I call the funcion or rwmb_set_meta for a settings page?
Thanks!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.