wpcf7_current_action()CF7 1.0

Хуков нет.

Возвращает

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

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

wpcf7_current_action();

Код wpcf7_current_action() CF7 6.1

function wpcf7_current_action() {
	foreach ( array( 'action', 'action2' ) as $var ) {
		$action = wpcf7_superglobal_request( $var, null );

		if ( isset( $action ) and -1 !== $action ) {
			return $action;
		}
	}

	return false;
}