Skip to content

Instantly share code, notes, and snippets.

Avatar

Jay Dreyer jaydreyer

View GitHub Profile
@jaydreyer
jaydreyer / zem_ir.php
Created Jun 26, 2021
zem_ir image replacement textpattern plugin code
View zem_ir.php
function zem_ir_set($atts) {
global $zem_ir_set;
$group = (empty($atts['group']) ? 'default' : $atts['group']);
$orig = (isset($zem_ir_set[$group]) ? $zem_ir_set[$group] : array());
$zem_ir_set[$group] = array_merge($orig, $atts);
return '';
}