This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: PMG Widget Tututorial | |
| Plugin URI: http://pmg.co/category/wordpress | |
| Description: How to create WordPress Widgets. | |
| Version: 1.0 | |
| Author: Christopher Davis | |
| Author URI: http://pmg.co/people/chris | |
| License: GPL2 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: FB Widget Tutorial | |
| Plugin URI: | |
| Description: How to create WordPress Widgets. | |
| Version: 13/03/2013 | |
| Author: Frank Bültge | |
| Author URI: http://bueltge.de/ | |
| License: GPLv3 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Add rel=nofollow to wp_list_categories | |
| * @link http://www.billerickson.net/adding-nofollow-to-category-links/ | |
| * @author Bill Erickson | |
| */ | |
| function add_nofollow( $text ) { | |
| $text = stripslashes($text); | |
| $text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Mask Outbound Links | |
| Plugin URI: http://www.christopherguitar.net/ | |
| Description: Masks outbound links behind a redirect | |
| Author: Christopher Davis | |
| Author URI: http://www.christopherguitar.net/ | |
| License: GPL2 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Fix SSL for Github | |
| Plugin URI: http://www.christopherguitar.net/ | |
| Description: Allow unverified SSL certificates from github only. | |
| Author: Christopher Davis | |
| Author URI: http://www.christopherguitar.net/ | |
| License: GPL2 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // create an object named "app" which we can define methods on | |
| var app = { | |
| // returns an array of each url to prefetch | |
| searchUniqueWithLimit: function(selector,limit){ | |
| // returns an array for selector | |
| var hrefs = $(selector).map(function(index, domElement){ | |
| return $(this).attr("href"); | |
| }); | |
| // returns the array of hrefs without duplicates | |
| return $.unique(hrefs).slice ( 0, limit?limit:5 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Retrieved from: http://wp-snippets.com/disable-self-trackbacks/ | |
| add_action( 'pre_ping', 'disable_self_ping' ); | |
| function disable_self_ping( &$links ) { | |
| foreach ( $links as $l => $link ) | |
| if ( 0 === strpos( $link, get_option( 'home' ) ) ) | |
| unset($links[$l]); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Remove br in pre | |
| * Plugin URI: http://wordpress.stackexchange.com/questions/39843/no-filter-of-code-on-switch-from-html-to-visual-editor-how | |
| * Text Domain: | |
| * Domain Path: /languages | |
| * Description: | |
| * Version: beta | |
| * Author: Frank Bültge | |
| * Author URI: http://bueltge.de |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // vpsinfo by Douglas Robbins | |
| // Email: drobbins [at] labradordata.ca | |
| // Website: http://www.labradordata.ca/home/13 | |
| $version = '2.3.2 (16 June 2006)'; | |
| // This script is intended as a general information/monitoring page for a Linux | |
| // Virtuozza or OpenVZ VPS (Virtual Private Server). It also runs fine on a | |
| // dedicated Linux machine. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class WPSEO_Frontend { | |
| function __construct() { | |
| $options = get_wpseo_options(); | |
| add_action( 'wp_head', array(&$this, 'head'), 1, 1 ); | |
| remove_action( 'wp_head', 'rel_canonical' ); |