Skip to content

Instantly share code, notes, and snippets.

View sheabunge's full-sized avatar
😴

Shea Bunge sheabunge

😴
View GitHub Profile
@Latz
Latz / disablexmlrpc
Created September 28, 2012 15:17
Sample plugin for diabling XMLRPC server for WordPress >= v3.5
<?php
/**
* Plugin Name: Disable XMLRPC
* Version: 0.1
* Plugin URI: http://wpengineer.com/?p=2484
* Description: Disable XMLRPC server for WP >= v3.5
* Author: Lutz Schröer
* Author URI: http://elektroelch.net/
*/
@stephanieleary
stephanieleary / buddypress-spam-link.php
Created October 2, 2012 01:50
BuddyPress Spam Link plugin. Adds the "Mark as spammer" link back to the admin bar and adds a "Spammer" button to the activity stream entry meta row.
@chrisguitarguy
chrisguitarguy / sunrise.php
Created October 16, 2012 02:50
A `sunrise.php` drop in that (mostly) allows custom domains in WordPress multisite. Still needs some more work, but it gets the job done.
<?php
/**
* A sunrise.php drop in that allows you to use WordPress' built in `domain`
* and `path` settings for MultiSite blogs.
*
* Some limitations:
* - Using this with a MS install and paths (not subdomains) does some
* weird stuff when updating `siteurl` and `home` while updating domain.
* So you'll you'll have to update those separately. There are probably
* filters to fix this.
@thefuxia
thefuxia / t5-query-log.php
Created November 4, 2012 13:53
T5 Log Queries
<?php
/**
* Plugin Name: T5 Log Queries
* Description: Writes all queries to '/query-log.sql'.
* Plugin URI: http://wordpress.stackexchange.com/a/70853/73
* Version: 2012.11.04
* Author: Thomas Scholz
* Author URI: http://toscho.de
* Licence: MIT
*/
@ozh
ozh / gist:4131243
Created November 22, 2012 13:44
Create dot files/directories (ie .file) on Windows

#How to create a .file or .folder on Windows

There are several ways

1. Rename

  • Create file.txt
  • Rename to .file., the last dot will be dropped, you'll have .file

Works the same with a file or a directory.

@chrisguitarguy
chrisguitarguy / settings-api-tabs.php
Created December 2, 2012 05:49
Settings API + Tabs. Not bad. More complicated than it needs to be?
<?php
/**
* Plugin Name: Settings API + Tabs
* Plugin URI: http://christopherdavis.me
* Description: Turn settings sections into tabs on an options page. A simple example.
* Version: 0.1
* Text Domain: settings-tabs
* Author: Christopher Davis
* Author URI: http://christopherdavis.me
* License: MIT
@bueltge
bueltge / attachment-taxononimies.php
Created December 6, 2012 11:38
WordPress Attachment Taxonomies with WP 3.5*
<?php
/**
* Plugin Name: Attachment Taxonomies
* Plugin URI: attachment_taxonomies
* Text Domain: addquicktag
* Domain Path: /languages
* Description:
* Version: 1.0.0
* Author: Frank Bültge
* Author URI: http://bueltge.de
@sheabunge
sheabunge / widget-shortcode.php
Created December 12, 2012 10:33
Easily insert any WordPress sidebar widget into a post or page using a shortcode. http://wp.smashingmagazine.com/2012/12/11/inserting-widgets-with-shortcodes/
<?php
/**
* Plugin Name: Widget Shortcode
* Plugin URI: http://wp.smashingmagazine.com/2012/12/11/inserting-widgets-with-shortcodes/
* Description: Easily insert any WordPress sidebar widget into a post or page using a shortcode.
* Author: Smashing Magazine
* Author URI: http://www.smashingmagazine.com
* Version: 1.0
*/
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/