- This topic has 2 replies, 2 voices, and was last updated 3 months ago by .
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’ ));
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?
- You must be logged in to reply to this topic.