Global press
Forum Replies Created
-
Hi Omnisend Support,
Thank you for your prompt response and for acknowledging the issue.
To clarify, my WordPress installation is not a multisite network. The fatal error occurs due to the switch_to_blog() function being called within the plugin, which is specific to multisite setups and thus unavailable in my environment. This is causing the site to crash when the plugin is active.
Please let me know if you need any specific details from my end, such as environment configurations or error logs, to assist with the fix. I appreciate your efforts and look forward to an update on a resolution.
Best regards,
[GLOBAL PRESS MEDIA]Thanks for the update, and great to hear you’ve configured the plugin! Just a heads-up—WEBP images often require users to be logged in to view them, depending on how your server or CDN handles image permissions.
add_action(‘wpcf7_mail_sent’, ‘store_successful_submission_only’);
function store_successful_submission_only($contact_form) {
// Here you can add custom checks to see if the submission was successful
// If successful, record the entry. If not, ignore it.
if ($contact_form->status === ‘mail_sent’) {
// Proceed to store the entry
} else {
// Ignore failed submission
}
}