PHP 클래스 Give_Email_Template_Tags, Give

파일 보기 프로젝트 열기: wordimpress/give

공개 메소드들

메소드 설명
add ( string $tag, string $description, callable $func ) Add an email tag.
do_tag ( $m ) : mixed Do a specific tag, this function should not be used. Please use give_do_email_tags instead.
do_tags ( string $content, integer $payment_id ) : string Search content for email tags and filter email tags through their hooks.
email_tag_exists ( string $tag ) : boolean Check if $tag is a registered email tag.
get_tags ( ) : array Returns a list of all email tags
remove ( string $tag ) Remove an email tag.

메소드 상세

add() 공개 메소드

Add an email tag.
부터: 1.0
public add ( string $tag, string $description, callable $func )
$tag string Email tag to be replace in email.
$description string The email tag description.
$func callable Hook to run when email tag is found.

do_tag() 공개 메소드

Do a specific tag, this function should not be used. Please use give_do_email_tags instead.
부터: 1.0
public do_tag ( $m ) : mixed
$m message
리턴 mixed

do_tags() 공개 메소드

Search content for email tags and filter email tags through their hooks.
부터: 1.0
public do_tags ( string $content, integer $payment_id ) : string
$content string Content to search for email tags.
$payment_id integer The payment id.
리턴 string Content with email tags filtered out.

email_tag_exists() 공개 메소드

Check if $tag is a registered email tag.
부터: 1.0
public email_tag_exists ( string $tag ) : boolean
$tag string Email tag that will be searched.
리턴 boolean

get_tags() 공개 메소드

Returns a list of all email tags
부터: 1.0
public get_tags ( ) : array
리턴 array

remove() 공개 메소드

Remove an email tag.
부터: 1.0
public remove ( string $tag )
$tag string Email tag to remove hook from