WordPress theme options and insert default value for serialize data
Loop over your array of options and generate a set of defaults from that.. Let’s imagine your array looks something like this.. (but obviously bigger).. $your_options = array( array( ‘name’ => ‘option-one’, ‘desc’ => ‘Option one description’, ‘type’ => ‘text’, ‘std’ => ‘default_value’ ), ..and so on.. for each option.. ); First check if you … Read more