WordPress.org

Forums

Weather Underground
Clean Easy and Cool (1 post)

  1. X3msnake
    Member
    Posted 2 years 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

  • Weather Underground
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.