WordPress.org

Support

Support » Reviews » Weather Underground » Clean Easy and Cool

Clean Easy and Cool

  • I’m using it for a client dashboard

    Just can’t find the information on what weather source it is using :\

    here is how you can add it to the admin dashboard;

    function x3msnake_add_meta_boxes() {
    	add_meta_box( 'dashboard_weather', 'Weather Forecast', 'print_html', 'dashboard', 'normal', 'default', 'null');
    }
    function print_html() { // we are using the shortcode here, this way all you have to do is configure it in the plugin config panel
    	echo(do_shortcode('[forecast]'));
    }
    add_action( 'wp_dashboard_setup', 'x3msnake_add_meta_boxes' );
  • The topic ‘Clean Easy and Cool’ is closed to new replies.
Skip to toolbar