Switch language

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




postbox_classes [ WordPress Function ]

postbox_classes ( $id, $page )
Parameters:
  • (unknown_type) $id
  • (unknown_type) $page
Uses:
Returns:
  • (unknown)
Defined at:



Returns the list of classes to be used by a metabox

Source


<?php
function postbox_classes$id$page ) {
    if ( isset( 
$_GET['edit'] ) && $_GET['edit'] == $id ) {
        
$classes = array( '' );
    } elseif ( 
$closed get_user_option('closedpostboxes_'.$page ) ) {
        if ( !
is_array$closed ) ) {
            
$classes = array( '' );
        } else {
            
$classes in_array$id$closed ) ? array( 'closed' ) : array( '' );
        }
    } else {
        
$classes = array( '' );
    }

    
$classes apply_filters"postbox_classes_{$page}_{$id}"$classes );
    return 
implode' '$classes );
}
?>

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