Alert: 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.

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

Private helper function for checked, selected, and disabled.

25 related functions found for: __checked_selected_helper

Top ↑

Related terms found for this post

wp-parser-related-wordscheck, checked, general-template-php, helper, select, selected, wp-includes
wp-parser-packageTemplate, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • check
  • checked
  • general-template-php
  • helper
  • select
  • selected
  • Template
  • wp-includes
  • wp-includes/general-template.php
  • template

Top ↑

Description Description

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

Top ↑

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 we are doing

Top ↑

Return Return

(string) html attribute or empty string

Top ↑

Source Source

File: wp-includes/general-template.php


Top ↑

Changelog Changelog

Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.