Update Option Stored in Multi-Dimensional Array

Posted by Prem Tiwari | Updated on

As far WordPress is concerned – your multi-dimensional array is one option. To update just part of the multi-dimensional array its necessary to retrieve the entire array, alter it accordingly and then update the entire array.

Suppose your multi-dimensional array is as follows:

And suppose you want to update the value of the ‘hello’ option from ‘world’ to ‘moon’


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers