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;
}