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 | |
global $wpcoDb, $Subscriber; | |
$wpcoDb -> model = $Subscriber -> model; | |
$conditions = false; | |
$fields = false; | |
$order = false; | |
$subscribers = $wpcoDb -> find_all($conditions, $fields, $order); | |
?> |
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
/* | |
Put this CSS in a file that loads after the bootstrap.css | |
Eg. Inside wp-checkout/views/bootstrap/style.css | |
Start each Bootstrap class you want to override with .checkout ... | |
This example will remove the rounded corners from the button. | |
It will make the button pink with black text. | |
And on hover, active or focus the button will be red with white text | |
*/ |
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 | |
global $Queue, $wpdb; | |
$query = "TRUNCATE TABLE " . $wpdb -> prefix . $Queue -> table; | |
$wpdb -> query($query); | |
?> |
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
define('DB_CHARSET', 'utf8'); |
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
<meta http-equiv="Content-Type" content="text/html charset=UTF-8" /> |
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
.newsletters_readmore { | |
font-size: 16px; font-family: Open Sans, Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 26px; background-color: #29266F; padding: 14px 26px; display: block; | |
} |
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
DELETE FROM `wp_wpmlhistorieslists` WHERE `history_id` NOT IN (SELECT `id` FROM `wp_wpmlhistory`); | |
DELETE FROM `wp_wpmlautoresponders` WHERE `history_id` NOT IN (SELECT `id` FROM `wp_wpmlhistory`); | |
DELETE FROM `wp_wpmlqueue` WHERE `history_id` NOT IN (SELECT `id` FROM `wp_wpmlhistory`); | |
DELETE FROM `wp_wpmlclicks` WHERE `history_id` NOT IN (SELECT `id` FROM `wp_wpmlhistory`); | |
DELETE FROM `wp_wpmlemails` WHERE `history_id` NOT IN (SELECT `id` FROM `wp_wpmlhistory`); |
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
UPDATE wp_wpmlemails SET read_date = modified WHERE read_date IS NULL; |
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
h3.slideshow-info-heading, | |
p.slideshow-info-content { | |
text-align: center; | |
} |
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 | |
global $Auth; | |
if ($subscriber = $Auth -> logged_in()) { | |
// subscriber is logged in | |
} | |
?> |