/** * Change Mailchimp API Response messages * * @param array $response The Response data. * * @return array */ function change_mailchimp_response_messages( $response ) { /** * Check The Message */ switch ( $response['message'] ) { case 'Member Exists'; /** The Message */ $response['message'] = __( 'Your Translation' ); /** Change The Message */ break; } /** * Return The Response Data */ return $response; } add_filter( 'jkit_mailchimp_response', 'change_mailchimp_response_messages' );