gform_mailchimp_allow_resubscription

gform_mailchimp_allow_resubscription

DescriptionUsageParametersExamplesPlacementSource Code

Description
Use this filter to modify whether a user that currently has a status of unsubscribed on your list is resubscribed. By default, the user is resubscribed.
Usage
add_filter("gform_mailchimp_allow_resubscription", "__return_false");

You can also specify this per form by adding the form id after the hook name.
add_filter("gform_mailchimp_allow_resubscription_1", "__return_false");

Parameters
There are no parameters.
Examples
This examples returns false so that users are not resubscribed:

Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in mailchimp.php.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註