wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
__checked_selected_helper is private and should not be used in themes or plugins directly.
__checked_selected_helper › WordPress Function
Depuis2.8.0
Dépréciéen/a
› __checked_selected_helper ( $helper, $current, $display, $type )
| Accès: |
|
| Paramètres: (4) |
|
| Retourne: |
|
| Défini(e) dans: |
|
| Codex: |
Private helper function for checked, selected, disabled and readonly.
Compares the first two arguments and if identical marks as$type.Fonctions en relation: wp_cache_delete_multiple, wp_check_filetype, wp_scheduled_delete, delete_theme, wp_ajax_delete_theme
Source
function __checked_selected_helper( $helper, $current, $display, $type ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
if ( (string) $helper === (string) $current ) {
$result = " $type='$type'";
} else {
$result = '';
}
if ( $display ) {
echo $result;
}
return $result;
}