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

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

Description Description

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

Parameters Parameters


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


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


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


(string) (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';
			case 'rss_head':
			case 'opml_head':
				$type = 'comment';
			case 'rdf_header':
				$type = 'rdf';
			case 'atom_head':
			case 'comments_atom_head':
			case 'app_head':
				$type = 'atom';


Changelog Changelog

Version Description
2.8.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.