Skip to content

Instantly share code, notes, and snippets.

View s-a-s-k-i-a's full-sized avatar
🥰

Saskia Lund s-a-s-k-i-a

🥰
View GitHub Profile
@s-a-s-k-i-a
s-a-s-k-i-a / et-meta-hawk.php
Last active February 15, 2020 16:08 — forked from andrasguseo/et-meta-hawk.php
Event Tickets Plus Meta Editor for Attendee Data (WooCommerce Only)
<?php
/**
* Plugin name: Event Tickets Meta Hawk
* Description: Lets site administrators soar over attendee meta data supplied by attendees then swoop down, hawk-like, to change it. Proof of concept targeting the WooCommerce provider.
* Version: 2019-08-03
* Author: Barry Hughes
*
* Contributor: Saskia Lund
*
* Experiment in making attendee meta editable via the attendee screen.
@s-a-s-k-i-a
s-a-s-k-i-a / wp-amp-tutorial-primary-nav.php
Created February 13, 2019 16:39 — forked from johnregan3/wp-amp-tutorial-primary-nav.php
Adding a Primary Navigation Menu to an AMP WordPress Theme
<?php
/**
* Register the amp-sidebar component script with WP AMP.
*
* This goes in your amp.php
*/
function jr3_amp_sidebar_component_script( $data ) {
$data['amp_component_scripts']['amp-sidebar'] = 'https://cdn.ampproject.org/v0/amp-sidebar-0.1.js';
return $data;
}