right_now_content_table_end function not working?

The new action is dashboard_glance_items. It is a filter providing an array to which you can add items. Example from my plugin T5 Taxonomy Location add_filter( ‘dashboard_glance_items’, array ( $this, ‘add_to_glance’ ) ); /** * Add locations to the new “At a glance” dashboard widget. * * @param array $items * @return array */ public … Read more

How to modify the default WordPress ‘Pages’ widget to have titles on the anchor tags?

A fast and short solution would be – function wpse_list_pages( $output ){ $output = preg_replace( ‘/<a(.*?)>(.*?)<\/a>/’, ‘<a$1 title=”$2″>$2</a>’, $output); return $output; } add_filter(‘wp_list_pages’, ‘wpse_list_pages’); And if you want a proper way, you could extend Walker_Page (ref: post-template.php) class and set the Pages Widget walker to class with widget_pages_args hook

Hide all Dashboard Widgets (not remove)

First of all I have to say taht after a quick investigations seems that no ‘dashboard_right_now’ or ‘dashboard_quick_press’ usermeta exists… so setting it to false like in you code can’t do anything. That said according to the docs there’s no way to specify where your widget shows up Docs lie. When an user logout and … Read more

Uses Cases for the Calendar Widget

As it sits, the calendar widget pretty much does just what you’ve said—allows people to troll the archives. Of course, it can be modified for different uses. One site I worked on used the Future plugin to convert the WordPress calendar widget into a calendar of events by creating a post for each event whose … Read more

Display sidebar only if it has content

You can use is_active_sidebar to check if sidebar has any widgets or not. Display sidebar only if is_active_sidebar returns true. <?php if ( is_active_sidebar( ‘sidebar-name’ ) ) : ?> <?php dynamic_sidebar( ‘sidebar-name’ ); ?> <?php endif; ?>

Display assigned terms with link

Keep in mind that the return value of get_the_terms() can be of the type of array|WP_Error Your snippet should check if you get the correct type returned $terms = get_the_terms( 0, ‘product_tag’ ); if ( ! is_wp_error( $terms ) AND is_array( $terms ) AND ! empty( $terms ) ) { foreach( $terms as $term ) … Read more