This file contains 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
// ---------------------------------------------------------- | |
// ---------- Add customer user fields in wp admin ---------- | |
// ---------------------------------------------------------- | |
<?php | |
function modify_contactmethods( $contactmethods ) { | |
// Remove unwanted fields // | |
unset($contactmethods['aim']); | |
unset($contactmethods['yim']); | |
unset($contactmethods['jabber']); | |
// Add new fields // |
This file contains 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 custom taxonomies ---------- | |
// ---------------------------------------------- | |
<?php | |
function custom_taxonomies() { | |
register_taxonomy('collection', 'post', array( | |
'hierarchical' => true, | |
'label' => 'Collections', | |
'query_var' => true, | |
'rewrite' => true |
This file contains 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
// --------------------------------------------------------- | |
// ---------- WordPress functions.php boilerplate ---------- | |
// --------------------------------------------------------- | |
<?php | |
// ---------------------------------------------------------------------------- | |
// ---------- Translations can be filed in the /languages/ directory ---------- | |
// ---------------------------------------------------------------------------- | |
load_theme_textdomain( 'html5reset', TEMPLATEPATH . '/languages' ); |
NewerOlder