Skip to content

Instantly share code, notes, and snippets.

View drahcirwalsh's full-sized avatar

Richard Walsh drahcirwalsh

View GitHub Profile
@drahcirwalsh
drahcirwalsh / psa-magic-login-integration.php
Created August 29, 2025 17:01
Create custom AutomateWoo Variables to support Magic Login Pro in AutomateWoo Emails
<?php
/**
* Magic Login Pro + AutomateWoo Integration
* Simple file-based variable registration
*
* @package PrintSolutionsAutomation
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
<?php
function list_posts_for_edit(){
if(is_user_logged_in()){
$args = array(
'post_type' => '****POST_TYPE_HERE****',
);
$posts = new WP_Query($args);
if($posts->have_posts()){
$results = '<ul>';
while($posts->have_posts()){
@drahcirwalsh
drahcirwalsh / 0_reuse_code.js
Created April 1, 2016 20:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console