Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?php
  2. //include the main class file
  3. require_once( get_template_directory() . "/admin-page-class/admin-page-class.php");
  4.  
  5. /**
  6. * configure your admin page
  7. */
  8.  
  9. $config = array(
  10. 'menu' => 'settings', //sub page to settings page
  11. 'page_title' => __('Demo Admin Page','apc'), //The name of this page
  12. 'capability' => 'edit_themes', // The capability needed to view the page
  13. 'option_group' => 'demo_options', //the name of the option to create in the database
  14. 'id' => 'admin_page', // meta box id, unique per page
  15. 'fields' => array(), // list of fields (can be added by field arrays)
  16. 'local_images' => false, // Use local or hosted images (meta box images for add/remove)
  17. '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).
  18. );
  19.  
  20. /**
  21. * instantiate your admin page
  22. */
  23. $options_panel = new BF_Admin_Page_Class($config);
  24. $options_panel->OpenTabs_container('');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement