Switch language

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




checked [ WordPress Function ]

checked ( $checked, $current = true, $echo = true )
Parameters:
  • (mixed) $checked 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 checked attribute.

Compares the first two arguments and if identical marks as checked

Source


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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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