wp_parse_args not inserting default value to options.

But its printing results.

$options = get_option('my_options');
$defaults = array (
    'logo' => 'http://domain.com/logo.png',
    'do_extra_thing' => false
// Parse incomming $args into an array and merge it with $defaults
$new_options = wp_parse_args( $options, $defaults );

But when i run print_r($new_options); Its give me results. Please guide me where i’m missing and wrong.

Read more here: wp_parse_args not insert it to options


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, ,

Wordpress related questions and answers: