Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* Example code showing how to hook WordPress to add several fields to the taxonomny term edit screen.
* To-Do: Add field types other than text fields.
*
* Original author:
*
* Mike Schinkel (http://mikeschinkel.com/custom-wordpress-plugins/)
*
* NOTE:
<?php
/*
* Hook WordPress to add a category field to a taxonomny term edit screen.
*
* Modified by Ulrich SOSSOU from:
*
* http://lists.automattic.com/pipermail/wp-hackers/2010-August/033671.html
*
* By:
*
<?php
if ( defined( 'COOKIE_DOMAIN' ) )
die( 'The constant "COOKIE_DOMAIN" is defined (probably in wp-config.php). Please remove or comment out that define() line.' );
// Compatibility mode
define('DM_COMPATIBILITY', 'yes');
// domain mapping plugin to handle VHOST and non VHOST installation
global $wpdb;
$mobile = array(
'2.0 MMP',
'240x320',
'400X240',
'AvantGo',
'BlackBerry',
'Blazer',
'Cellphone',
'Danger',
'DoCoMo',
@sorich87
sorich87 / so-recommended-posts-widget.php
Created October 3, 2010 19:36
So's WordPress Recommended Posts Widget: displays a customizable list of recommended posts
@sorich87
sorich87 / so-featured-categories-widget.php
Created October 3, 2010 15:58
So's WordPress Featured Categories Widget: displays a customized list of featured categories
@sorich87
sorich87 / so-authors-widget.php
Created October 3, 2010 11:21
So's WordPress Authors Widget: displays a list of blog authors ordered by number of posts
<?php
/**
* Description: So's WordPress Authors Widget: displays a list of blog authors ordered by number of posts
* Author: Ulrich SOSSOU
* Author URI: http://ulrichsossou.com/
* Version: 1.0
* Licence: GPLv2
* Compatibility: WordPress 3.0+
*
@sorich87
sorich87 / custom-widget.php
Created September 28, 2010 08:29
Widget sample with tinymce wysiwyg editor
<?php
class Custom_Widget extends WP_Widget {
function Custom_Widget() {
...
}
function widget($args, $instance) {
...
}