Skip to content

Instantly share code, notes, and snippets.

View ptasker's full-sized avatar
:fishsticks:

Peter Tasker ptasker

:fishsticks:
View GitHub Profile
@davidakennedy
davidakennedy / a11y-theme-review.txt
Created February 14, 2016 21:37
A collection of review template responses for WordPress theme reviews.
Hi there!
Thanks for creating a WordPress theme and submitting it to the WordPress.org directory! Since your theme also includes the accessibility-ready tag, I've also reviewed it according to those requirements, which you can find here: https://make.wordpress.org/themes/handbook/review/accessibility/
Required
Anything in this section will need to be fixed before the theme can be approved.
Keyboard Navigation
@lukaswhite
lukaswhite / ClearBeanstalkdQueueCommand.php
Last active March 20, 2023 08:11
Clear a Beanstalkd Queue in Laravel
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class ClearBeanstalkdQueueCommand extends Command {
/**
@ptasker
ptasker / gist:4162223
Created November 28, 2012 16:08
GA Track Social
FB.Event.subscribe('edge.create', function(targetUrl) {
_gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);
});
FB.Event.subscribe('edge.remove', function(targetUrl) {
_gaq.push(['_trackSocial', 'facebook', 'unlike', targetUrl]);
});
FB.Event.subscribe('message.send', function(targetUrl) {
_gaq.push(['_trackSocial', 'facebook', 'send', targetUrl]);
@ptasker
ptasker / gist:3714647
Created September 13, 2012 14:27
Facebook Add App to Tab
https://www.facebook.com/dialog/pagetab?app_id=APP_ID&next=APP_HOSTED_URL
@mjangda
mjangda / jetpack-loader.php
Created August 31, 2012 05:11
Manually load Jetpack modules (e.g. for dev or offline environments); drop this in your mu-plugins folder
<?php
// TODO: don't run if Jetpack is active
add_action( 'plugins_loaded', function() {
if ( ! file_exists( WP_PLUGIN_DIR . '/jetpack/' ) )
return;
$modules = array(
'modules/contact-form.php',
'modules/shortcodes.php',
@ptasker
ptasker / gist:3288142
Created August 7, 2012 18:36 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(