wpcf7_current_action()CF7 1.0

Хуков нет.

Возвращает

null. Ничего.

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

wpcf7_current_action();

Код wpcf7_current_action() CF7 5.6.1

function wpcf7_current_action() {
	if ( isset( $_REQUEST['action'] ) and -1 != $_REQUEST['action'] ) {
		return $_REQUEST['action'];
	}

	if ( isset( $_REQUEST['action2'] ) and -1 != $_REQUEST['action2'] ) {
		return $_REQUEST['action2'];
	}

	return false;
}