right_now_content_table_end and wp 3.8
-
Hi i just have updated one of my sites to WP 3.8.
Everything works fine, with a small excepion: I can’t add new stats to the Right now dashboard widget. It doesn’t seem to stick.
Here is my code:
function travel_offers_right_now() { $num_widgets = wp_count_posts( 'travel-offers' ); $num = number_format_i18n( $num_widgets->publish ); $text = _n( 'Travel Offer', 'Travel offers', $num_widgets->publish ); if ( current_user_can( 'edit_pages' ) ) { $num = "<a href='edit.php?post_type=travel-offers'>$num</a>"; $text = "<a href='edit.php?post_type=travel-offers'>$text</a>"; } echo '<li>' . $num . '</li>'; echo '<li>' . $text . '</li'; } add_action( 'right_now_content_table_end', 'travel_offers_right_now' );I’m using the upBootstrap3WP theme.
Relevant plugins:- Advanced Custom Fields (and it’s plugins)
- Custom post type UI (travel-offers post type is registered with this plugin)
- WPML (and it’s relative plugins)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘right_now_content_table_end and wp 3.8’ is closed to new replies.