Skip to content

Instantly share code, notes, and snippets.

View patrikthors's full-sized avatar

Patrik Thors patrikthors

View GitHub Profile
@thefrosty
thefrosty / WordCamp Vegas Plugability
Created December 14, 2011 01:03
Core functionality plugin.
<?php
/**
* Plugin Name: PluginName
* Plugin URI: http://austinpassy.com/wordpress-plugins/
* Description: Core functionality for __________
* Version: 1.0.0
* Author: Austin Passy
* Author URI: http://austinpassy.com/
*
* @copyright 2012
# custom login link
RewriteRule ^login$ http://localhost/whitelabel/wp-login.php [NC,L]
@mikeschinkel
mikeschinkel / list-custom-post-type-posts-with-ajax.PHP
Created November 13, 2010 10:04
Shows how to create a widget with a dropdown list of posts for a given post type and then retrieve HTML specific to the selected post via AJAX to insert into the page.
<?php
/*
List_Custom_Post_Type_Posts_with_AJAX class.
Shows how to create a widget with a dropdown list of posts for a given post type and
then retrieve HTML specific to the selected post via AJAX to insert into the page.
Yes, the name of the class is insanely long in hopes that you'll be forced to think
about what would be a better name.