Advertisement
Guest User

Untitled

a guest
Mar 21st, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. Plugin Name: Internal Archive
  5. Description: An internal archive for Admins
  6. Version: 1.0
  7. Author: Name Of The Plugin Author
  8. */
  9.  
  10.  
  11. if (!class_exists('InternalArchive')) {
  12. class InternalArchive {
  13.  
  14. function InternalArchive(){
  15. add_action( 'admin_menu', array(&$this, 'register_settings_page'));
  16. }
  17.  
  18. function register_settings_page() {
  19. $archive_page = add_menu_page(__('Internal Archive', 'internal-archive'), __('Internal Archive', 'internal-archive'), 'administrator', 'internal-archive', array(&$this, 'internal_archive'));
  20.  
  21. }
  22.  
  23. function internal_archive() { ?>
  24.  
  25. <div class="wrap">
  26. <h1>This is an internal archive</h1>
  27. <p>Put a loop of your custom post type here</p>
  28.  
  29. </div>
  30.  
  31.  
  32. <?php }
  33.  
  34. }
  35. new InternalArchive();
  36. }
  37.  
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement