Filter Categories widget to allow custom sorting?

Hi @Scott B: From /wp-includes/widgets.php for the WP_Category_Widget class we have the following code (line 438 in WordPress v3.0.4): $cat_args = array(‘orderby’ => ‘name’, ‘show_count’ => $c, ‘hierarchical’ => $h); if ( $d ) { $cat_args[‘show_option_none’] = __(‘Select Category’); wp_dropdown_categories( apply_filters(‘widget_categories_dropdown_args’,$cat_args) ); From that I would surmise the hook ‘widget_categories_dropdown_args’ should allow you to set … Read more

Issue with contextual help overwriting existing content

In order to not delete help from all other screens, you need to always return the contextual help text, otherwise your filter doesn’t return anything for non-page/post screens and so nothing will show up. Move the return to the bottom of the function, outside of your if/else. Also, the original contextual help is being concatenated … Read more

How do I access the menus produced by Dashboard > Appearance > Menus

First: Use, for options(), the Settings API (tutorial). Second: Take a look at the core function and the available filters. Then take a look at the available filters: $sorted_menu_items = apply_filters( ‘wp_nav_menu_objects’, $sorted_menu_items, $args ); $items = apply_filters( ‘wp_nav_menu_items’, $items, $args ); $items = apply_filters( “wp_nav_menu_{$menu->slug}_items”, $items, $args );

Which file of wordpress manage plugins functionalities?

There should never be a case where you edit the core. Filters and actions were created so plugin developers could navigate the intricacies of WordPress wihtout touching core files. You should reference the following: http://codex.wordpress.org/Plugin_API/Action_Reference http://codex.wordpress.org/Plugin_API/Filter_Reference There are quite a few undocumented filters that I find when viewing WP core. If you do go to … Read more