Skip to content

Developer Docs

Evan Herman edited this page May 6, 2015 · 59 revisions

Filters

  1. yikes-mailchimp-form-title-FORM_ID
  2. yikes-mailchimp-form-description-FORM_ID

1. yikes-mailchimp-form-title-FORM_ID

Description

This filter is executed when the specified MailChimp form is rendered on the front end of your site and can be used to alter the title of a given form.

Usage

Applies to a specific form.

apply_filters( 'yikes-mailchimp-form-title-'.$form_id , apply_filters( 'the_title' , $form_name ) );

Parameters

  • $form_title

The form title of the specified form to alter.

Examples

This example will alter the form title on the front end of your site, for the MailChimp form with id 1 only.

function alter_mailchimp_form_title( $form_title ) {
	$form_title = 'New Form Title';
	return $form_title;
}
add_action( 'yikes-mailchimp-form-title-1' , 'alter_mailchimp_form_title' );

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in process_form_shortcode.php.


2. yikes-mailchimp-form-description-FORM_ID

Description

This filter is executed when the specified MailChimp form is rendered on the front end of your site and can be used to alter the description of a given form.

Usage

Applies to a specific form.

apply_filters( 'yikes-mailchimp-form-description-'.$form_id ,  $form_description );

Parameters

  • $form_description

The form description of the specified form to alter.

Examples

This example will alter the form description on the front end of your site, for the MailChimp form with id 1 only.

function alter_mailchimp_form_description( $form_description ) {
	$form_description = 'Please enter your email address and name below to sign up for our mailing list.';
	return $form_description;
}
add_action( 'yikes-mailchimp-form-description-1' , 'alter_mailchimp_form_description' );

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in process_form_shortcode.php.

Clone this wiki locally