Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/contact-.../modules/sendinbl...
File: doi.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Double Opt-In Helper-related functions
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://contactform7.com/doi-helper/
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
[7] Fix | Delete
add_action(
[8] Fix | Delete
'doihelper_init',
[9] Fix | Delete
'wpcf7_sendinblue_doi_register_agent',
[10] Fix | Delete
10, 0
[11] Fix | Delete
);
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Registers wpcf7_sendinblue as an agent.
[15] Fix | Delete
*/
[16] Fix | Delete
function wpcf7_sendinblue_doi_register_agent() {
[17] Fix | Delete
if ( ! function_exists( 'doihelper_register_agent' ) ) {
[18] Fix | Delete
return;
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
doihelper_register_agent( 'wpcf7_sendinblue', array(
[22] Fix | Delete
'optin_callback' => apply_filters(
[23] Fix | Delete
'wpcf7_sendinblue_doi_optin_callback',
[24] Fix | Delete
'wpcf7_sendinblue_doi_default_optin_callback'
[25] Fix | Delete
),
[26] Fix | Delete
'email_callback' => apply_filters(
[27] Fix | Delete
'wpcf7_sendinblue_doi_email_callback',
[28] Fix | Delete
'wpcf7_sendinblue_doi_default_email_callback'
[29] Fix | Delete
),
[30] Fix | Delete
) );
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* Default optin_callback function.
[36] Fix | Delete
*/
[37] Fix | Delete
function wpcf7_sendinblue_doi_default_optin_callback( $properties ) {
[38] Fix | Delete
$service = WPCF7_Sendinblue::get_instance();
[39] Fix | Delete
[40] Fix | Delete
if ( ! $service->is_active() ) {
[41] Fix | Delete
return;
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
if ( ! empty( $properties['contact'] ) ) {
[45] Fix | Delete
$contact_id = $service->create_contact( $properties['contact'] );
[46] Fix | Delete
[47] Fix | Delete
if ( $contact_id and ! empty( $properties['email'] ) ) {
[48] Fix | Delete
$service->send_email( $properties['email'] );
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
[54] Fix | Delete
/**
[55] Fix | Delete
* Default email_callback function.
[56] Fix | Delete
*/
[57] Fix | Delete
function wpcf7_sendinblue_doi_default_email_callback( $args ) {
[58] Fix | Delete
if ( ! isset( $args['token'] ) or ! isset( $args['email_to'] ) ) {
[59] Fix | Delete
return;
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
$site_title = wp_specialchars_decode(
[63] Fix | Delete
get_bloginfo( 'name' ),
[64] Fix | Delete
ENT_QUOTES
[65] Fix | Delete
);
[66] Fix | Delete
[67] Fix | Delete
$link = add_query_arg(
[68] Fix | Delete
array( 'doitoken' => $args['token'] ),
[69] Fix | Delete
home_url()
[70] Fix | Delete
);
[71] Fix | Delete
[72] Fix | Delete
$to = $args['email_to'];
[73] Fix | Delete
[74] Fix | Delete
$subject = sprintf(
[75] Fix | Delete
/* translators: %s: blog name */
[76] Fix | Delete
__( 'Opt-in confirmation from %s', 'contact-form-7' ),
[77] Fix | Delete
$site_title
[78] Fix | Delete
);
[79] Fix | Delete
[80] Fix | Delete
$message = sprintf(
[81] Fix | Delete
/* translators: 1: blog name, 2: confirmation link */
[82] Fix | Delete
__( 'Hello,
[83] Fix | Delete
[84] Fix | Delete
This is a confirmation email sent from %1$s.
[85] Fix | Delete
[86] Fix | Delete
We have received your submission to our web form, according to which you have allowed us to add you to our contact list. But, the process has not yet been completed. To complete it, please click the following link.
[87] Fix | Delete
[88] Fix | Delete
%2$s
[89] Fix | Delete
[90] Fix | Delete
If it was not your intention, or if you have no idea why you received this message, please do not click on the link, and ignore this message. We will never collect or use your personal data without your clear consent.
[91] Fix | Delete
[92] Fix | Delete
Sincerely,
[93] Fix | Delete
%1$s', 'contact-form-7' ),
[94] Fix | Delete
$site_title,
[95] Fix | Delete
$link
[96] Fix | Delete
);
[97] Fix | Delete
[98] Fix | Delete
wp_mail( $to, $subject, $message );
[99] Fix | Delete
}
[100] Fix | Delete
[101] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function