Skip to content

Instantly share code, notes, and snippets.

@thefuxia
thefuxia / t5-extend-email-checks.php
Created May 15, 2011 02:23
T5 Extend Email Checks
<?php # -*- coding: utf-8 -*-
/*
Plugin Name: T5 Extend Email Checks
Description: Overrides the results of the functions <code>is_email()</code> and <code>sanitize_email()</code>. Allows for example <code>me@localhost</code> or punycode encoded email adresses by using PHP’s internal filter function.
Version: 2012.08.29
Plugin URI: http://toscho.de/?p=2195
Author: Thomas Scholz
Author URI: http://toscho.de
License: MIT
*/
@thefuxia
thefuxia / disable-wptexturize.php
Last active February 3, 2022 15:49
Disable Wptexturize
<?php
/*
Plugin Name: Disable Wptexturize
Description: Removes most calls to this incredible slow function.
Version: 1.0
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
*/
@thefuxia
thefuxia / quote-author.php
Created May 28, 2011 04:55
WordPress Plugin Quote Author
<?php # -*- coding: utf-8 -*-
/*
Plugin Name: Custom Taxonomy Quote Author
Plugin URI: https://gist.github.com/996608
Description: Creates a custom taxonomy <code>Quote Author</code> with an URI <code>/qa/author-name/</code>
Version: 1.0
Required: 3.1
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
<?php # -*- coding: utf-8 -*-
/**
* Create a nav menu with very basic markup.
*
* @author Thomas Scholz http://toscho.de
* @version 1.0
*/
class T5_Nav_Menu_Walker_Simple extends Walker_Nav_Menu
{
/**
@thefuxia
thefuxia / function.extra_comment_callback.php
Created June 29, 2011 19:43
Sample Comment Walker for WordPress
<?php
/**
* Callback for wp_list_comments()
* @param object $comment
* @param array $args
* @param int $depth
* @return void
*/
function extra_comment_callback( $comment, $args, $depth )
{
@thefuxia
thefuxia / google.plus.css
Created July 4, 2011 19:54
User Stylesheet for Google Plus
/**
* User stylesheet for Google+ https://plus.google.com
*
* @author Thomas Scholz http://toscho.de/+
* @version 1.4
* @browser Opera 11.5
* @license MIT http://www.opensource.org/licenses/mit-license.php
* @description https://plus.google.com/115532307838378431827/posts/PCLQhk32gTE
*
*
@thefuxia
thefuxia / remove-header-image.php
Created July 30, 2011 04:41
Remove Header Image
<?php # -*- coding: utf-8 -*-
/*
Plugin Name: Remove Header Image
Description: Disables the header image for properly written themes like TwentyEleven.
Version: 1.0
Required: 3.1
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
*/
@thefuxia
thefuxia / callback-demo.php
Created July 30, 2011 09:37
Callback Demo
<?php # -*- coding: utf-8 -*-
/*
Plugin Name: Callback Demo
Description: Demonstrating how a meta box and a menu page can take the same callback function.
Version: 1.0
Required: 3.1
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
Plugin URI: http://wordpress.stackexchange.com/q/24481/
@thefuxia
thefuxia / toscho-title-escape.php
Created August 24, 2011 08:17
Toscho’s Title Escape
<?php # -*- coding: utf-8 -*-
/*
Plugin Name: Toscho's Title Escape
Description: Prevents markup in post titles.
Version: 1.0
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
*/
add_filter( 'the_title', 'htmlspecialchars' );