I’m using the Pagelines DMS Theme and I’m wanting to extend the functionality of the front end admin panel. The user(s) I’m building this for would like to be able to edit a few settings directly from this page, including of which – the Site Title and Tagline.
Concept:
add_filter('pl_sorted_settings_array', 'add_global_panel2');
function add_global_panel2($settings){
$settings['privacy'] = array(
'name' => 'Blog Name',
'icon' => 'icon-eye-open',
'opts' => array(
// Regular Options Engine
array(
'id' => 'blogname',
'type' => 'text',
'label' => __('blog Name', 'pagelines')
),
// Regular Options Engine
array(
'id' => 'blogdescription',
'type' => 'text',
'label' => __('blog description![enter image description here][1], 'pagelines')
),
)
);
// Finally we return the new array
return $settings;
}
Is there a way to do this (add their own Site Title and Taglines) within a text-field for example, click Publish Options button to output it to the front-end of the site and display an updated version in the WP API Settings > General Settings sub-menu page?