Powrót do Dev Notes

WordPress admin panel

Dodanie pola do dashboard panelu WP:


    function ws_dashboard_layout(){ ?>
      <h2>info</h2>
    <?php }
    function ws_register_dashboard(){
      wp_add_dashboard_widget('ws-dashboard-wtg', 'Info', 'ws_dashboard_layout');
    }

    add_action('wp_dashboard_setup', 'ws_register_dashboard');