Guest User

Untitled

a guest
Apr 20th, 2017
47
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     ...
  3.  
  4. function my_dashboard_html() {
  5.     ?>
  6.     <div class="wrap">
  7.         <div id="dashboard-widgets-wrap">
  8.             <?php wp_dashboard(); ?>
  9.         </div>
  10.     </div>
  11.     <?php
  12. }
  13.  
  14. function my_dashboard_help () {
  15.     require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
  16.     wp_enqueue_script( 'dashboard' );
  17.  
  18.     do_action( 'register_my_dashboard_widgets' );
  19.  
  20.    
  21.     $screen = get_current_screen();
  22.     ...
RAW Paste Data