Skip to content

Instantly share code, notes, and snippets.

View jerclarke's full-sized avatar
🌿

Jer Clarke jerclarke

🌿
View GitHub Profile
@jerclarke
jerclarke / aiwp-jer-query-demo.php
Created May 23, 2023 19:15
AIWP Jer's Query Demo - Simple demo of Jer's custom queries using AIWP internals
<?php
/**
* Plugin Name: AIWP Jer's Query Demo
* Plugin URI: https://jerclarke.org
* Description: Simple demo of Jer's custom queries using AIWP internals
* Author: Jer Clarke
* Version: 0.1
* Author URI: https://jerclarke.org
* Text Domain: jer-aiwp-queriess
* Domain Path: /languages
Array
(
[client_id] =>
[client_secret] =>
[access_front] => Array
(
[0] => administrator
)
[access_back] => Array
@jerclarke
jerclarke / gv-about-widget-for-lingua.html
Last active January 19, 2024 20:53
"About GV" widget code for Lingua sites
[gv_promo_card large=1 aspect_ratio='' image_url='https://globalvoices.org/wp-content/uploads/2023/03/gv-inverted-earths-800x450.png' image_alt_text='Alt text' image_link_url='/about/']
<h3>We are Global Voices</h3>
<big> Global Voices is an international, multilingual community of writers, translators, and human rights activists. Together, we leverage the power of the internet to tell stories that build understanding across borders.</big>
<big><a href="/about/">Learn more »</a></big>[/gv_promo_card]
@jerclarke
jerclarke / codeception-confirm-page-reload.php
Created March 8, 2024 16:28
Codeception confirm page reloaded helpers
<?php
# Helper methods to add to the acceptance tester class ($I)
/**
* Run this before submitting a form/clicking link when we want to check the page reloaded later
*
* Sets a JS var that we can check later to know that the page
* has reloaded
*