wpcf7_ajax_dashboard_widgets() │ CF7 1.0

Ajax action to update the Contact Form 7 news in the Dashboard screen.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

wpcf7_ajax_dashboard_widgets();

Код wpcf7_ajax_dashboard_widgets() CF7 6.2.4.1

function wpcf7_ajax_dashboard_widgets() {
	require_once WPCF7_PLUGIN_DIR . '/admin/includes/dashboard.php';

	set_current_screen( 'toplevel_page_wpcf7-dashboard' );

	if ( 'dashboard_primary' === wpcf7_superglobal_get( 'widget' ) ) {
		wpcf7_dashboard_cf7com_news();
	}

	wp_die();
}