PHP 클래스 Give_Emails, Give

부터: 1.0
파일 보기 프로젝트 열기: wordimpress/give 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Get things going
__set ( $key, $value ) Set a property
build_email ( $message ) : mixed | void Build the final email.
get_content_type ( ) Get the email content type
get_from_address ( ) Get the email from address
get_from_name ( ) Get the email from name
get_headers ( ) Get the email headers
get_heading ( ) Get the header text for the email
get_template ( ) Get the enabled email template
get_templates ( ) Retrieve email templates
parse_tags ( $content ) : mixed Parse email template tags
send ( string $to, string $subject, string $message, string | array $attachments = '' ) : boolean Send the email
send_after ( ) Remove filters / actions after the email is sent
send_before ( ) Add filters / actions before the email is sent
text_to_html ( $message ) Converts text to formatted HTML. This is primarily for turning line breaks into

and
tags.

메소드 상세

__construct() 공개 메소드

Get things going
부터: 1.0
public __construct ( )

__set() 공개 메소드

Set a property
부터: 1.0
public __set ( $key, $value )

build_email() 공개 메소드

Build the final email.
부터: 1.0
public build_email ( $message ) : mixed | void
$message
리턴 mixed | void

get_content_type() 공개 메소드

Get the email content type
부터: 1.0
public get_content_type ( )

get_from_address() 공개 메소드

Get the email from address
부터: 1.0
public get_from_address ( )

get_from_name() 공개 메소드

Get the email from name
부터: 1.0
public get_from_name ( )

get_headers() 공개 메소드

Get the email headers
부터: 1.0
public get_headers ( )

get_heading() 공개 메소드

Get the header text for the email
부터: 1.0
public get_heading ( )

get_template() 공개 메소드

Get the enabled email template
부터: 1.0
public get_template ( )

get_templates() 공개 메소드

Retrieve email templates
부터: 1.0
public get_templates ( )

parse_tags() 공개 메소드

Parse email template tags
public parse_tags ( $content ) : mixed
$content
리턴 mixed

send() 공개 메소드

Send the email
public send ( string $to, string $subject, string $message, string | array $attachments = '' ) : boolean
$to string The To address to send to.
$subject string The subject line of the email to send.
$message string The body of the email to send.
$attachments string | array Attachments to the email in a format supported by wp_mail()
리턴 boolean

send_after() 공개 메소드

Remove filters / actions after the email is sent
부터: 1.0
public send_after ( )

send_before() 공개 메소드

Add filters / actions before the email is sent
부터: 1.0
public send_before ( )

text_to_html() 공개 메소드

Converts text to formatted HTML. This is primarily for turning line breaks into

and
tags.

부터: 1.0
public text_to_html ( $message )