Private Access Private 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.
Summery Summery
Private helper function for checked, selected, disabled and readonly.
Syntax Syntax
Description Description
Compares the first two arguments and if identical marks as $type
Parameters Parameters
- $helper
-
(Required) One of the values to compare
- $current
-
(Required) (true) The other value to compare if not just true
- $echo
-
(Required) Whether to echo or just return the string
- $type
-
(Required) The type of checked|selected|disabled|readonly we are doing
Return Return
(string) html attribute or empty string
Source Source
File: wp-includes/general-template.php
$type = 'rss2'; break; case 'rss_head': case 'opml_head': $type = 'comment'; break; case 'rdf_header': $type = 'rdf'; break; case 'atom_head': case 'comments_atom_head': case 'app_head': $type = 'atom';
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |