Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //include the main class file
- require_once( get_template_directory() . "/admin-page-class/admin-page-class.php");
- /**
- * configure your admin page
- */
- $config = array(
- 'menu' => 'settings', //sub page to settings page
- 'page_title' => __('Demo Admin Page','apc'), //The name of this page
- 'capability' => 'edit_themes', // The capability needed to view the page
- 'option_group' => 'demo_options', //the name of the option to create in the database
- 'id' => 'admin_page', // meta box id, unique per page
- 'fields' => array(), // list of fields (can be added by field arrays)
- 'local_images' => false, // Use local or hosted images (meta box images for add/remove)
- 'use_with_theme' => false //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false).
- );
- /**
- * instantiate your admin page
- */
- $options_panel = new BF_Admin_Page_Class($config);
- $options_panel->OpenTabs_container('');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement