Skip to content

Instantly share code, notes, and snippets.

View MadtownLems's full-sized avatar

Jason LeMahieu MadtownLems

  • University of Wisconsin - Madison
  • Madison, WI
  • X @madtownlems
View GitHub Profile
@MadtownLems
MadtownLems / surge-modifier.php
Created February 5, 2024 20:46
Surge Modifier Proof of Concept
<?php
/*
* Plugin Name: Surge Modifier
* Description: Modifies the behavior of the Surge caching plugin to aggressively invalidate a subsite's cache when content has changed
* Version: 3
* Author: Jason LeMahieu
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
@MadtownLems
MadtownLems / block-visibility-modifier.php
Created January 17, 2024 21:09
Block Visibility Modifier (Modifier Plugin Proof of Concept)
<?php
/*
Plugin Name: Block Visibility Modifier
Description: Modifies the behavior of the WP Block Visibility plugin: Removes settings page and overrides actual settings
Version: 1
Author: Jason LeMahieu
Author URI: https://jasonlemahieu.com
*/
@MadtownLems
MadtownLems / acf-widget-lemahieu.php
Created November 15, 2022 20:31
ACF (Classic) Widget Proof of Concept
<?php
/*
Plugin Name: ACF Widget - save dialog, proof of concept
Description: Demonstrates a bug when required ACF field groups are used in a widget (See comment after docblock)
Version: 1
Author: Jason LeMahieu
Author URI: https://jasonlemahieu.com/
*/
@MadtownLems
MadtownLems / gist:8842cafd4ee37427bbe607c4ad1d6071
Created September 26, 2022 21:41
user_has_cap difference in Classic and Block Editors
<?php
/*
Plugin Name: Block Editor vs Classic user_has_cap proof of concept
Description: This plugin compares the user_has_cap filter functionality in the Classic and Block editors. It intends to allow Authors the ability to edit pages they are the author of.
Version: 1
Author: Jason LeMahieu
Author URI: https://jasonlemahieu.com
*/
/* When used in the Classic Editor, Authors can edit pages they are the author of.
@MadtownLems
MadtownLems / acf-block-alignment-issue-proof-of-concept.php
Created May 10, 2021 18:05
ACF Block Alignment Issue Proof of Concept
<?php
/*
Plugin Name: ACF Block Alignment Issue Proof of Concept
Description: This creates a basic block with InnerBlocks. You can align it left or right, but some UI issues appear when you do.
Version: 1
Author: Jason LeMahieu
Author URI: https://jasonlemahieu.com
*/
class EXT_ACF_Alignment_Issues_Proof_of_Concept {