Skip to content

Instantly share code, notes, and snippets.

View courtneyr-dev's full-sized avatar
🎯
Focusing

Courtney Robertson courtneyr-dev

🎯
Focusing
View GitHub Profile
@courtneyr-dev
courtneyr-dev / pmprosm_sponsored_account_levels.php
Last active May 11, 2021 19:31 — forked from ideadude/pmprosm_sponsored_account_levels.php
Example global settings for the PMPro Sponsored Members Add On
/*
Define the global array below for your main accounts and sponsored levels.
Array keys should be the main account level.
*/
global $pmprosm_sponsored_account_levels;
$pmprosm_sponsored_account_levels = array(
//set 5 seats at checkout
1 => array(
'main_level_id' => 1, //redundant but useful
'sponsored_level_id' => array(2,3), //array or single id
@courtneyr-dev
courtneyr-dev / skc-404.php
Created March 23, 2021 16:08 — forked from sc0ttkclark/skc-404.php
My 404 handler for scottkclark.com
<?php
/**
* Handle 404's in a way that can trick Slack and other link previews.
*/
function skc_404_handler() {
if ( is_admin() || ! is_404() ) {
return;
}
<?php
/**
* Unregisters the Google Maps API script on Events Calendar PRO.
*/
add_action( 'wp_print_scripts', 'ecp_remove_google_maps_api', 100 );
function ecp_remove_google_maps_api() {
wp_deregister_script( 'tribe-gmaps' );
}
/** Change the size and colour of the widget title */
.tribe-this-week-widget-wrapper .tribe-events-page-title {
color: green;
}
/** Change the background color of the headers */
.tribe-this-week-widget-header-date {
background-color: green;
}
<a href="http://twi.gaslamp.digital/events/"> <?php printf( '&laquo; ' . esc_html_x( 'All %s', '%s Events plural label', 'the-events-calendar' ), $events_label_plural ); ?></a>