Blogname and Blogdescription in Pagelines DMS Options Panel

Ok,

So I have found a solution to my problem;

Pagelines encodes each key and value pair into a json string, within in its own option called pl_settings in the wp_options table.

They also give you access to each of these key->value pairs using the following: $value = pl_setting(‘option_key’)

Thus I have taken the approach of using the following code to fulfil my needs:

add_filter('pl_sorted_settings_array', 'add_global_panel2');
function add_global_panel2($settings){
    $settings['privacy'] = array(
        'name' => 'About Your Loved One',
        'icon' => 'icon-heart',
        'opts' => array(
            // Regular Options Engine
        array(
                'key' => 'blogname',
                'type' => 'text',
                'label' => 'the name of your loved one',
                'help' => 'test'
        ),
            // Regular Options Engine
            array(
                'key'   => 'blogdescription',
                'type' => 'text',
                'label' => 'a message to your loved one',
                'help' => 'test'
            ),
        )
    );
    update_option('blogname', $value = pl_setting('blogname'));
    update_option('blogdescription', $value = pl_setting('blogdescription'));
    // Finally we return the new array
    return $settings;
}

The only downside of working it in this way is that I need to refresh the browser twice once updating either of the values for it to actually take effect on it’s corresponding option.

If anyone could better this then please let me know.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)