Switch language

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




install_popular_tags [ WordPress Function ]

install_popular_tags ( $args = array() )
Parameters:
  • (array) $args
Returns:
  • (array)
Defined at:



Retrieve popular WordPress plugin tags.

Source


<?php
function install_popular_tags$args = array() ) {
    
$key md5(serialize($args));
    if ( 
false !== ($tags get_site_transient('poptags_' $key) ) )
        return 
$tags;

    
$tags plugins_api('hot_tags'$args);

    if ( 
is_wp_error($tags) )
        return 
$tags;

    
set_site_transient('poptags_' $key$tags10800); // 3 * 60 * 60 = 10800

    
return $tags;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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