redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Update an Option Outside the Options Panel

Open invisiblevision opened this issue 11 years ago • 3 comments

How can i pass an array to a set function , Like i have to change the 'background-color' of field 'page-title' so it will be like this array('page-title'=>array('background-color')) but as set function only accepts string in first argument so i am unable to do so ,OR Is there any alternative , Using JSON or js ?? i don't wanna use Iimage presets , as i am selecting color dynamically from color field and updating to all necessary fields Thanks !

http://docs.reduxframework.com/core/advanced/update-an-option-outside-the-options-panel/

invisiblevision avatar Feb 21 '15 19:02 invisiblevision

Because the first argument is the string of your opt_name. I suppose you could pass an array for the second parameter, but I;ve never tried it. Anything you pass get's saved to the database as is.

kprovance avatar Feb 21 '15 19:02 kprovance

Awsome ! :+1: it worked ! You made my day , Thanks a lot Sir ,

invisiblevision avatar Feb 21 '15 19:02 invisiblevision

If you like Redux, please do some or all of the following.

Review us: http://wordpress.org/support/view/plugin-reviews/redux-framework Like us: http://facebook.com/ReduxFramework Follow us: http://twitter.com/ReduxFramework Donate to keep us going: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MMFMHWUPKHKPW

dovy avatar Feb 21 '15 19:02 dovy