Dashboard Widget Generator

Generate widget for WordPress Dashboard

Dashboard widget ID (lowercase, no spaces)
Dashboard PHP content
Dashboard title

AUTO GENERATED CODE

<?php
//Custom dashboard widget generated by Brewpy.app
add_action('wp_dashboard_setup','brewpy_dashboard_widget_1642621953984');
function brewpy_dashboard_widget_1642621953984(){
    global $wp_meta_boxes;
    wp_add_dashboard_widget('dashboard_widget_1','My widget','brewpy_dashboard_func_1642621953984');
}
function brewpy_dashboard_func_1642621953984(){
echo 'Hello!';
}
?>

How to use this code?

  1. Copy auto generated code ↑ (without beginning and ending PHP tags <?php and ?>)
  2. Paste code to bottom of your theme functions.php file
  3. Save and you are done!