This file contains 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 | |
/* | |
* A filter to modify Popup Maker's Age Verification Popups' feedback messages (success and error). | |
* | |
* The first argument in each magic function -- __() -- is the success/error message. Change as any or all messages desired. | |
* | |
* @version Popup Maker Age Verification Modals (1.2.4) | |
* | |
* @see popup-maker-age-verification-modals/popup-maker-age-verification-modals.php |
This file contains 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
/* | |
* Trigger a [Popup Maker] popup when another popup is closed + Delay | |
* | |
* Reference: https://docs.wppopupmaker.com/article/554-launch-a-popup-from-a-popup-or-when-a-popup-closes | |
*/ | |
jQuery(document).ready(function ($) { | |
/** | |
* Popup A: The popup that you want to trigger another popup when closed. |
This file contains 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 | |
// Run once! (Use a plugin like Code Snippets https://wordpress.org/plugins/code-snippets/) | |
function wcv_activate_all_vendors() { | |
global $wpdb; | |
$vendors = get_users( array( 'fields' => array( 'ID' ), 'role' => 'Vendor' ) ); | |
$meta_key = '_wcv_vendor_status'; |
This file contains 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
/* | |
* Close a [Popup Maker] popup when the mouse cursor is moved away from the popup. | |
*/ | |
jQuery(document).ready(function( $ ){ | |
/* The popup object | |
* | |
* ID: The popup ID | |
* selector: The CSS selector of the popup's container |
This file contains 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
jQuery(document).ready(function ($) { | |
/* Checkout popup will not display for this country */ | |
const excludedCountry = 'GB'; | |
/* Popups (popups IDs) by country */ | |
const checkoutPopups = { | |
default: 914, | |
algeria: 902, | |
albania: 912 |
This file contains 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
/* | |
* Trigger a [Popup Maker] popup from another popup (or when the popup is closed) + Delay | |
* | |
* Reference: https://docs.wppopupmaker.com/article/554-launch-a-popup-from-a-popup-or-when-a-popup-closes | |
*/ | |
jQuery(document).ready(function ($) { | |
/* Opens a popup after a delay */ | |
const delayOpenPopup = (popupID, delay) => { |