PHP Class MC4WP_Comment_Form_Integration

Inheritance: extends MC4WP_Integration
Afficher le fichier Open project: dannyvankooten/mailchimp-for-wordpress

Méthodes publiques

Свойство Type Description
$description string
$name string

Protected Properties

Свойство Type Description
$added_through_filter boolean

Méthodes publiques

Méthode Description
add_checkbox_before_submit_button ( $submit_button_html ) : string This adds the checkbox just before the submit button and sets a flag to prevent it from outputting twice
add_hooks ( ) Add hooks
get_object_link ( $object_id ) {@inheritdoc }
is_installed ( ) : boolean
maybe_output_checkbox ( ) Output fallback Will output the checkbox if comment_form() function does not use comment_form_submit_field filter yet.
subscribe_from_comment ( integer $comment_id, string $comment_approved = '' ) : boolean | string Grabs data from WP Comment Form

Method Details

add_checkbox_before_submit_button() public méthode

This adds the checkbox just before the submit button and sets a flag to prevent it from outputting twice
public add_checkbox_before_submit_button ( $submit_button_html ) : string
$submit_button_html
Résultat string

add_hooks() public méthode

Add hooks
public add_hooks ( )

is_installed() public méthode

public is_installed ( ) : boolean
Résultat boolean

maybe_output_checkbox() public méthode

Output fallback Will output the checkbox if comment_form() function does not use comment_form_submit_field filter yet.

subscribe_from_comment() public méthode

Grabs data from WP Comment Form
public subscribe_from_comment ( integer $comment_id, string $comment_approved = '' ) : boolean | string
$comment_id integer
$comment_approved string
Résultat boolean | string

Property Details

$added_through_filter protected_oe property

protected bool $added_through_filter
Résultat boolean

$description public_oe property

public string $description
Résultat string

$name public_oe property

public string $name
Résultat string