WC_Email::get_heading
Get email heading.
Метод класса: WC_Email{}
Хуки из метода
Возвращает
Строку.
Использование
$WC_Email = new WC_Email(); $WC_Email->get_heading();
Код WC_Email::get_heading() WC Email::get heading WC 10.5.0
public function get_heading() {
/**
* Provides an opportunity to inspect and modify heading for the email.
*
* @since 2.0.0
*
* @param string $heading Heading to be added to the email.
* @param object|bool $object The object (ie, product or order) this email relates to, if any.
* @param WC_Email $email WC_Email instance managing the email.
*/
return apply_filters( 'woocommerce_email_heading_' . $this->id, $this->format_string( $this->get_option_or_transient( 'heading', $this->get_default_heading() ) ), $this->object, $this );
}