WPCF7_Submission::extra_attachments()publicCF7 1.0

Returns extra email attachment files.

{} Это метод класса: WPCF7_Submission{}

Хуков нет.

Возвращает

Массив. Array of file paths.

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

$WPCF7_Submission = new WPCF7_Submission();
$WPCF7_Submission->extra_attachments( $template );
$template(строка) (обязательный)
An email template name.

Код WPCF7_Submission::extra_attachments() CF7 5.6.2

public function extra_attachments( $template ) {
	if ( isset( $this->extra_attachments[$template] ) ) {
		return (array) $this->extra_attachments[$template];
	}

	return array();
}