WPCF7_Pipe::__construct()publicCF7 1.0

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPCF7_Pipe = new WPCF7_Pipe();
$WPCF7_Pipe->__construct( $text );
$text (обязательный)
-

Код WPCF7_Pipe::__construct() CF7 5.6.4

public function __construct( $text ) {
	$text = (string) $text;

	$pipe_pos = strpos( $text, '|' );

	if ( false === $pipe_pos ) {
		$this->before = $this->after = trim( $text );
	} else {
		$this->before = trim( substr( $text, 0, $pipe_pos ) );
		$this->after = trim( substr( $text, $pipe_pos + 1 ) );
	}
}