Skip to content

Instantly share code, notes, and snippets.

View go6media's full-sized avatar
💭
I may be slow to respond.

Wayne Philips go6media

💭
I may be slow to respond.
View GitHub Profile
Here is the current Data we are sending to the API:
{
"programName": "RWC_API_Leads",
"reason": "Reach",
"source": "RWCStoreReset25",
"input": [
{
"refTag": "not_set",
"firstName": "Jay", //First Name
"lastName": "B", //Last Name
<script>
console.log('[Qualified API call Debug] EN Script loaded');
window.addEventListener('load', function () {
if (typeof qualified === 'function') {
console.log('Qualified is initialized and ready.');
} else {
console.warn('Qualified is NOT ready yet.');
}
// Add this function to your theme's functions.php or a custom plugin file
// To use the shortcode you should call [check_open_status location_id="123"]
//Replace '123' with your location ID (edit a location and you will find this in the url)
function check_if_location_open( $atts ) {
// Extract shortcode attributes
$atts = shortcode_atts(
array(
'location_id' => '', // Default is empty, you need to provide location_id
@go6media
go6media / gist:de3705bd32dc40067f10e4f14502d60a
Created June 30, 2020 14:32
Output Products based on team selected taxonomy
// Loop woo products by a teams chosen sector ACF field
function ics_sector_reports() {
// Get team ID for current user
$teams = wc_memberships_for_teams_get_teams( $user_id );
if ( ! empty( $teams ) ) {
foreach ( $teams as $team ) {
$team_id = $team->get_id();}