wpcf7_akismet_posted_data()CF7 1.0

Removes Akismet-related properties from the posted data.

This does not affect the $_POST variable itself.

Хуков нет.

Возвращает

null. Ничего.

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

wpcf7_akismet_posted_data( $posted_data );
$posted_data (обязательный)
-

Код wpcf7_akismet_posted_data() CF7 5.6.3

function wpcf7_akismet_posted_data( $posted_data ) {
	if ( wpcf7_akismet_is_available() ) {
		$posted_data = array_diff_key(
			$posted_data,
			array(
				'ak_bib' => '',
				'ak_bfs' => '',
				'ak_bkpc' => '',
				'ak_bkp' => '',
				'ak_bmc' => '',
				'ak_bmcc' => '',
				'ak_bmk' => '',
				'ak_bck' => '',
				'ak_bmmc' => '',
				'ak_btmc' => '',
				'ak_bsc' => '',
				'ak_bte' => '',
				'ak_btec' => '',
				'ak_bmm' => '',
			)
		);
	}

	return $posted_data;
}