PHP Class MC4WP_Form_Tags

Afficher le fichier Open project: dannyvankooten/mailchimp-for-wordpress Class Usage Examples

Protected Properties

Свойство Type Description
$form MC4WP_Form
$form_element MC4WP_Form_Element
$tags MC4WP_Dynamic_Content_Tags

Méthodes publiques

Méthode Description
__construct ( ) Constructor
add_hooks ( )
get ( ) : array
get_cookie ( array $args = [] ) : string Gets data variable from cookie.
get_data ( $args = [] ) : string Gets data value from GET or POST variables.
get_email ( ) : string
get_form_response ( ) : string Returns the form response
get_post_property ( $args = [] ) * Get property of viewed post
get_subscriber_count ( ) : integer Returns the number of subscribers on the selected lists (for the form context)
get_user_property ( $args = [] ) * Get property of currently logged-in user
register ( array $tags ) : array
replace ( string $string, MC4WP_Form $form, MC4WP_Form_Element $element = null ) : string Replaces the registered tags in the given string
replace_in_url ( $string, MC4WP_Form $form ) : string

Method Details

__construct() public méthode

Constructor
public __construct ( )

add_hooks() public méthode

public add_hooks ( )

get() public méthode

public get ( ) : array
Résultat array

get_data() public méthode

Gets data value from GET or POST variables.
public get_data ( $args = [] ) : string
$args
Résultat string

get_email() public méthode

public get_email ( ) : string
Résultat string

get_form_response() public méthode

Returns the form response
public get_form_response ( ) : string
Résultat string

get_post_property() public méthode

* Get property of viewed post
public get_post_property ( $args = [] )
$args

get_subscriber_count() public méthode

Returns the number of subscribers on the selected lists (for the form context)
public get_subscriber_count ( ) : integer
Résultat integer

get_user_property() public méthode

* Get property of currently logged-in user
public get_user_property ( $args = [] )
$args

register() public méthode

public register ( array $tags ) : array
$tags array
Résultat array

replace() public méthode

Replaces the registered tags in the given string
public replace ( string $string, MC4WP_Form $form, MC4WP_Form_Element $element = null ) : string
$string string
$form MC4WP_Form
$element MC4WP_Form_Element
Résultat string

replace_in_url() public méthode

public replace_in_url ( $string, MC4WP_Form $form ) : string
$string
$form MC4WP_Form
Résultat string

Property Details

$form protected_oe property

protected MC4WP_Form $form
Résultat MC4WP_Form

$form_element protected_oe property

protected MC4WP_Form_Element $form_element
Résultat MC4WP_Form_Element

$tags protected_oe property

protected MC4WP_Dynamic_Content_Tags $tags
Résultat MC4WP_Dynamic_Content_Tags