I have an API link ($content bellow), and I need to display the content fetched from this link in the dashboard. I don't have slightest idea how to do this.
if( !class_exists( 'DevMind_DashboardWidget') ) {
class DevMind_DashboardWidget {
function devmind_dashboard_widget() {
// External Iframe Widget
echo '<script src="//www.gmodules.com/ig/ifr?url=http://widgets.getclicky.com/igdash/clicky.xml&up_siteName=www.ejobindia.com&up_siteID=100542361&up_siteKey=a16e8cf0a5a195e5&up_resultLimit=10&up_showKeywords=1&up_showEngines=1&up_initalSelection=0-summary&up_showPercent=1&synd=open&w=320&h=250&title=Clicky&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>';
//$content contains the original xml which I need to transfer into data table
$content= 'http://serpbook.com/serp/api/?viewkey=dw8628r&auth=678a498d500a203885191bdd16c70190';
}
function devmind_add_dashboard_widget() {
wp_add_dashboard_widget(
'devmind-custom-widget',
'Campaign Manager',
array( 'DevMind_DashboardWidget', 'devmind_dashboard_widget' )
);
}
}
add_action(
'wp_dashboard_setup',
array(
'DevMind_DashboardWidget',
'devmind_add_dashboard_widget'
)
);
}
