Switch language

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




__checked_selected_helper [ WordPress Function ]

__checked_selected_helper ( $helper, $current, $echo, $type )
Access:
  • private
Parameters:
  • (any) $helper One of the values to compare
  • (any) $current (true) The other value to compare if not just true
  • (bool) $echo Whether to echo or just return the string
  • (string) $type The type of checked|selected|disabled we are doing
Returns:
  • (string) html attribute or empty string
Defined at:



Private helper function for checked, selected, and disabled.

Compares the first two arguments and if identical marks as $type

Source


<?php
function __checked_selected_helper$helper$current$echo$type ) {
    if ( (string) 
$helper === (string) $current )
        
$result $type='$type'";
    else
        
$result '';

    if ( 
$echo )
        echo 
$result;

    return 
$result;
}
?>

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