PHP Class MC4WP_Comment_Form_Integration

Inheritance: extends MC4WP_Integration
Mostrar archivo Open project: dannyvankooten/mailchimp-for-wordpress

Public Properties

Property Type Description
$description string
$name string

Protected Properties

Property Type Description
$added_through_filter boolean

Public Methods

Method 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 method

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
return string

add_hooks() public method

Add hooks
public add_hooks ( )

is_installed() public method

public is_installed ( ) : boolean
return boolean

maybe_output_checkbox() public method

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

subscribe_from_comment() public method

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

Property Details

$added_through_filter protected_oe property

protected bool $added_through_filter
return boolean

$description public_oe property

public string $description
return string

$name public_oe property

public string $name
return string