wpseek.com
WordPress开发者和主题制作者的搜索引擎
__checked_selected_helper is private and should not be used in themes or plugins directly.
__checked_selected_helper › WordPress Function
Since2.8.0
已弃用n/a
› __checked_selected_helper ( $helper, $current, $display, $type )
访问: |
|
参数: (4) |
|
返回: |
|
定义在: |
|
文档: |
Private helper function for checked, selected, disabled and readonly.
Compares the first two arguments and if identical marks as$type
.Related Functions: wp_check_filetype, wp_cache_delete_multiple, wp_scheduled_delete, delete_theme, wp_ajax_delete_theme
源码
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; }