/** * * Function psp_dashboard_overview_widget_function * * Echo's the output of psp_populate_dashboard_widget * * @param * @return contents of psp_populate_dashboard_widget * */ function psp_dashboard_overview_widget_function() { echo psp_populate_dashboard_widget(); }
/** * * Function psp_dashboard_shortcode * * Outputs the Dashboard Widget in Shortcode Format * * @param (variable) ($atts) Attributes from the shortcode - currently none * @return ($output) (Content from psp_populate_dashboard_widget() ) * */ function psp_dashboard_shortcode($atts) { $output = '<div class="psp-dashboard-widget">' . psp_populate_dashboard_widget() . '</div>'; return $output; }