-
Notifications
You must be signed in to change notification settings - Fork 0
/
mailchimp_compat.php
52 lines (46 loc) · 1.19 KB
/
mailchimp_compat.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Home for Backwards Compatibility Functions
*
* @package Mailchimp
*/
/* Form Display Functions */
if ( ! function_exists( 'mc_display_widget' ) ) {
/**
* Alias for `mailchimp_sf_signup_form`
*
* @param array $args Signup form args.
* @return void
*/
function mc_display_widget( $args = array() ) {
mailchimp_sf_signup_form( $args );
}
}
if ( ! function_exists( 'mailchimp_sf_display_widget' ) ) {
/**
* Alias for `mailchimp_sf_signup_form`
*
* @param array $args Signup form args.
* @return void
*/
function mailchimp_sf_display_widget( $args = array() ) {
mailchimp_sf_signup_form( $args );
}
}
/* Shortcodes */
add_shortcode( 'mailchimpsf_widget', 'mailchimp_sf_shortcode' );
/**
* Deprecates functions for plugin version 1.6.0
*
* Changes function names to snake case
*/
/**
* (Deprecated) Displays a Mailchimp Signup Form
*
* @param array $args Args
* @return void
*/
function mailchimpSF_signup_form( $args = array() ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid -- ignored due to deprecating function
_deprecated_function( __FUNCTION__, '1.6.0', 'mailchimp_sf_signup_form' );
mailchimp_sf_signup_form( $args );
}