Esempio n. 1
0
function wpml_tm_load_dashboard_widget()
{
    if (is_admin()) {
        global $pagenow;
        if ($pagenow === 'index.php') {
            global $sitepress, $wpdb;
            $widget = new WPML_TM_CPT_Dashboard_Widget($wpdb, $sitepress);
            echo $widget->render();
        }
    }
}
Esempio n. 2
0
function wpml_tm_load_dashboard_widget()
{
    global $pagenow;
    if ($pagenow === 'index.php') {
        global $sitepress, $wp_taxonomies;
        $widget = new WPML_TM_CPT_Dashboard_Widget($sitepress, $wp_taxonomies);
        echo $widget->render();
    }
}