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
function my_restrict_manage_posts() { | |
global $typenow; | |
$args=array( 'public' => true, '_builtin' => false ); | |
$post_types = get_post_types($args); | |
if ( in_array($typenow, $post_types) ) { | |
$filters = get_object_taxonomies($typenow); | |
foreach ($filters as $tax_slug) { | |
$tax_obj = get_taxonomy($tax_slug); | |
wp_dropdown_categories(array( | |
'show_option_all' => __('Show All '.$tax_obj->label ), |
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
///////////////////////////////////////////////////////////////////////// | |
/// Title: Stopwatch Class | |
/// Author: Sam Christy | |
/// Date: 26/11/2011 | |
/// Licence: GNU GPL | |
/// | |
/// This class is a simple, high-resolution stopwatch for timing the | |
/// execution of C++ programs in a Windows eviroment. This class | |
/// emulates the Stopwatch class of the .NET framework and uses the | |
/// Windows API to time events. Its precision is much greater than any |
NewerOlder