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 | |
/* | |
* 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: |
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 | |
/* | |
* 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: | |
* |
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 | |
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; |
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
$mobile = array( | |
'2.0 MMP', | |
'240x320', | |
'400X240', | |
'AvantGo', | |
'BlackBerry', | |
'Blazer', | |
'Cellphone', | |
'Danger', | |
'DoCoMo', |
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 | |
/** | |
* Description: So's WordPress Recommended Posts Widget: displays a customizable list of recommended posts | |
* Author: Ulrich SOSSOU | |
* Author URI: http://ulrichsossou.com/ | |
* Version: 1.0 | |
* Licence: GPLv2 | |
* Compatibility: WordPress 3.0+ | |
* |
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 | |
/** | |
* Description: So's WordPress Featured Categories Widget: displays a customized list of featured categories | |
* Author: Ulrich SOSSOU | |
* Author URI: http://ulrichsossou.com/ | |
* Version: 1.0 | |
* Licence: GPLv2 | |
* Compatibility: WordPress 3.0+ | |
* |
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 Custom_Widget extends WP_Widget { | |
function Custom_Widget() { | |
... | |
} | |
function widget($args, $instance) { | |
... | |
} | |
NewerOlder