WPCF7_HTMLFormatter::calc_next_position()public staticCF7 1.0

Calculates the position of the next chunk based on the position and length of the current chunk.

Метод класса: WPCF7_HTMLFormatter{}

Хуков нет.

Возвращает

int. The position of the next chunk.

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

$result = WPCF7_HTMLFormatter::calc_next_position( $chunk );
$chunk(массив) (обязательный)
An associative array of the current chunk.

Код WPCF7_HTMLFormatter::calc_next_position() CF7 5.7.3

public static function calc_next_position( $chunk ) {
	return $chunk['position'] + strlen( $chunk['content'] );
}