Contents |
Adds an option or array of options into the main global PageLines Settings area.
$args
All examples will use the following basic array option
$options = array(
'foo_field' => array(
'default' => '',
'type' => 'text',
'title' => __('Foo', 'pagelines'),
'inputlabel'=> __('More Foo', 'pagelines'),
'shortexp' => __('Foo foo foo foo.', 'pagelines'),
),
);
This example will add a new Custom menus and use the $options array to populate it.
pl_global_option( array( 'options' => $options ) );
pl_global_option( array( 'menu' => 'website_setup', 'options' => $options, 'location' => 'top' ) );
pl_global_option( array( 'menu' => 'website_setup', 'options' => $options, 'location' => 'bottom' ) );
pl_global_option( array( 'menu' => 'website_setup', 'options' => $options, 'location' => 'before', 'option' => 'pagelines_favicon' ) );
pl_global_option() is located in includes/library.layout.php