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
<? | |
/* | |
Plugin Name: LetterMo Post Types | |
Plugin URI: http://stephanieleary.com/ | |
Version: 1.5 | |
Author: Stephanie Leary | |
Author URI: http://stephanieleary.com/ | |
Description: Setting up the post types and achievements for Month of Letters. | |
License: GPL2 | |
*/ |
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
<?php | |
/* | |
Plugin Name: LetterMo Post Types | |
Plugin URI: http://stephanieleary.com/ | |
Version: 1.6 | |
Author: Stephanie Leary | |
Author URI: http://stephanieleary.com/ | |
Description: Setting up the post types and achievements for Month of Letters. | |
License: GPL2 | |
*/ |
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
<?php | |
/* | |
Plugin Name: Show MIMEs | |
Description: A tiny plugin to add more file type filters in the media library screens. | |
Author: Stephanie Leary | |
Version: 1.1 | |
Author URI: http://sillybean.net/ | |
*/ | |
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
<?php get_header(); ?> | |
<div id="container"> | |
<div id="content" role="main"> | |
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?> | |
<?php the_archive_description( '<div class="term-description">', '</div>' ); ?> | |
<?php | |
// Find out if this term has child terms | |
$object = get_queried_object(); | |
$termchildren = get_term_children( $object->term_id, $object->taxonomy ); |
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
<?php | |
/* | |
Plugin Name: Steph's Tiny List Child Pages Plugin | |
Plugin URI: http://sillybean.net/2010/06/listing-child-pages-with-a-shortcode/ | |
Description: Lets you list child pages using a shortcode. Also displays child page list by default on empty parent pages. | |
Author: Stephanie Leary | |
Version: 1.0 | |
Author URI: http://sillybean.net/ | |
License: GPL v2 or later | |
*/ |
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
function remove_dashboard_widgets() { | |
global $wp_meta_boxes; | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); | |
// unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); // WordPress Blog | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); // Other WordPress News |
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
<?php | |
header('Content-Type: text/xml'); | |
$url = $_GET['url']; | |
$data = file_get_contents($url); | |
echo $data; | |
?> |
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
function remove_my_taxonomy_boxes() | |
{ | |
$tax_name = 'my_taxonomy'; | |
$content_type = 'post'; | |
// presumably there is some condition you want to check, like current_user_can('something') | |
$remove = true; | |
if ($remove) | |
remove_meta_box( $tax_name.'div', $content_type, 'side' ); | |
} |
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
<?php | |
/* | |
Plugin Name: Tagged Galleries | |
Description: Lets you add multiple [gallery] tags in a single WordPress page. Specify the images to be included in each gallery using tags: [gallery tag="foo"] (assuming you have tagged the images). | |
Version: 1.0 | |
Author: Stephanie Leary | |
Author URI: http://sillybean.net/ | |
*/ | |
add_action('admin_init', 'register_attachment_tags'); |
OlderNewer