Switch language

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




wp_sidebar_description [ WordPress Function ]

wp_sidebar_description ( $id )
Parameters:
  • (int|string) $id sidebar ID.
Returns:
  • (string) Sidebar description, if available. Null on failure to retrieve description.
Defined at:



Retrieve description for a sidebar.

When registering sidebars a 'description' parameter can be included that describes the sidebar for display on the widget administration panel.

Source


<?php
function wp_sidebar_description$id ) {
    if ( !
is_scalar($id) )
        return;

    global 
$wp_registered_sidebars;

    if ( isset(
$wp_registered_sidebars[$id]['description']) )
        return 
esc_html$wp_registered_sidebars[$id]['description'] );
}
?>

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