Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_dashboard_secondary_output [ WordPress Function ]

wp_dashboard_secondary_output ( No parameters )
Returns:
  • (unknown)
Defined at:



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

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics