Skip to content

Developer Docs

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

Filters

  1. yikes-mailchimp-form-title

1. yikes-mailchimp-form-title

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.

Clone this wiki locally