__checked_selected_helper

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Private helper function for checked, selected, disabled and readonly.

Syntax

__checked_selected_helper( mixed $helper, mixed $current, bool $echo, string $type )

DescriptionDescription

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

ParametersParameters

$helper

(mixed) (Required) One of the values to compare

$current

(mixed) (Required) (true) The other value to compare if not just true

$echo

(bool) (Required) Whether to echo or just return the string

$type

(string) (Required) The type of checked|selected|disabled|readonly we are doing

ReturnReturn

(string) html attribute or empty string

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top