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_hook('EmailPreSend', 1, 'disableSomeMails'); | |
function disableSomeMails($vars) { | |
// update the 11 below to whichever hour you run this task at. | |
if (date('g') == 11 AND $vars['messagename'] == "Credit Card Payment Failed") { | |
return array('abortsend' => 'true'); | |
} else { |
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 | |
require_once '/home/whmcs/public_html/init.php'; | |
// update above to your WHMCS folder | |
$capturetotal=0; | |
$invoicescaptured=0; | |
$paymethodstried=0; | |
$command=array( | |
'status' => 'Overdue', | |
'orderby' => 'duedate', |
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_hook('DailyCronJob', 1, 'uptimeRobotCron'); | |
function uptimeRobotCron($vars) { | |
$ch = curl_init("https://heartbeat.uptimerobot.com/xxxxxxx"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_exec($ch); | |
curl_close($ch); | |
} |
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 | |
if (!defined('WHMCS')) { | |
exit('This file cannot be accessed directly'); | |
} | |
add_hook('UserEdit', 5, 'sync_user_to_client'); | |
add_hook('ClientEdit', 5, 'sync_client_to_user'); | |
function sync_user_to_client($vars) { | |
// gather the data |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="robots" content="noindex,nofollow"> | |
<title>Masked Emails</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> | |
</head> | |
<body> |
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
AddOutputFilterByType SUBSTITUTE text/html | |
Substitute "s|fonts.googleapis.com|fonts.bunny.net|i" | |
Substitute "s|fonts.gstatic.com|fonts.bunny.net|i" |