wp_dashboard_secondary_output [ WordPress Function ]
wp_dashboard_secondary_output ( No parameters )
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: wp_dashboard_secondary, wp_dashboard_secondary_control, wp_dashboard_rss_output, wp_dashboard_plugins_output, wp_dashboard_quick_press_output
Display secondary dashboard RSS widget feed.
Source
<?php
function wp_dashboard_secondary_output() {
$widgets = get_option( 'dashboard_widget_options' );
@extract( @$widgets['dashboard_secondary'], EXTR_SKIP );
$rss = @fetch_feed( $url );
if ( is_wp_error($rss) ) {
if ( is_admin() || current_user_can('manage_options') ) {
echo '<div class="rss-widget"><p>';
printf(__('<strong>RSS Error</strong>: %s'), $rss->get_error_message());
echo '</p></div>';
}
} elseif ( !$rss->get_item_quantity() ) {
$rss->__destruct();
unset($rss);
return false;
} else {
echo '<div class="rss-widget">';
wp_widget_rss_output( $rss, $widgets['dashboard_secondary'] );
echo '</div>';
$rss->__destruct();
unset($rss);
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- PHPXRef 0.7 : WordPress : Detail view of dashboard.php
wp_dashboard_secondary_output() wp_dashboard_plugins() ...
phpxref.ftwr.co.uk - dashboard.php - PHP Cross Reference of WordPress Source - Yoast
wp_dashboard_secondary_output() wp_dashboard_plugins() ...
xref.yoast.com - WordPress 2.5 (Brecker) Dashboard: How to remove widget items ...
Apr 6, 2008 ... case 'devnews' : wp_dashboard_rss_output( 'dashboard_primary' ); break; case ' planetnews' : wp_dashboard_secondary_output(); break; ...
www.ditii.com - Wordpress 2.5+: Get Rid of That Sluggish Dashboard ¦ kremalicious
Jul 15, 2008 ... break; case 'devnews' : wp_dashboard_rss_output( 'dashboard_primary' ); break; case 'planetnews' : wp_dashboard_secondary_output(); ...
kremalicious.com