Switch language

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




disabled [ WordPress Function ]

disabled ( $disabled, $current = true, $echo = true )
Parameters:
  • (mixed) $disabled One of the values to compare
  • (mixed) $current (true) The other value to compare if not just true
  • (bool) $echo Whether to echo or just return the string
Returns:
  • (string) html attribute or empty string
Defined at:



Outputs the html disabled attribute.

Compares the first two arguments and if identical marks as disabled

Source


<?php
function disabled$disabled$current true$echo true ) {
    return 
__checked_selected_helper$disabled$current$echo'disabled' );
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

0 User Note(s)

None yet. Be the first!

Add New ...



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