This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('wpcf7_before_send_mail', function($contact_form) { | |
| // Get the submission instance | |
| $submission = WPCF7_Submission::get_instance(); | |
| if ($submission) { | |
| // Get the mail properties | |
| $mail = $contact_form->get_properties()['mail']; | |
| // Add the BCC header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Fix Password Protect pages with Elementor | |
| * | |
| * Author: Mattias Ghodsian | |
| * Donate a cup of coffee: https://www.buymeacoffee.com/mattiasghodsian | |
| * Donate Eth: 0xBBB96204E45D11C9799c6B12E6eE6F0d4A071Ef5 | |
| * | |
| * @param string $content | |
| * @return html | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| document.addEventListener("DOMContentLoaded", function () { | |
| document.querySelectorAll("article[data-post-link]").forEach(article => { | |
| // Clone the article to remove existing listeners | |
| const clonedArticle = article.cloneNode(true); | |
| article.parentNode.replaceChild(clonedArticle, article); | |
| // Create the overlay link | |
| const link = document.createElement("a"); | |
| link.href = clonedArticle.getAttribute("data-post-link"); |