WordPress.org

Ready to get started?Download WordPress

Forums

Weather Forecast - WP Wunderground
Clean Easy and Cool (1 post)

5 stars
  1. X3msnake
    Member
    Posted 1 year ago #

    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' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.