wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



readonly › WordPress Function

Depuis4.9.0
Dépréciée5.9.0
readonly ( $readonly_value, $current = true, $display = true )
Paramètres: (3)
  • (mixed) $readonly_value One of the values to compare.
    Requis: Oui
  • (mixed) $current Optional. The other value to compare if not just true. Default true.
    Requis: Non
    Défaut: true
  • (bool) $display Optional. Whether to echo or just return the string. Default true.
    Requis: Non
    Défaut: true
Voir:
Retourne:
  • (string) HTML attribute or empty string.
Défini(e) dans:
Codex:

Outputs the HTML readonly attribute.

Compares the first two arguments and if identical marks as readonly. This function is deprecated, and cannot be used on PHP >= 8.1.


Source

function readonly( $readonly_value, $current = true, $display = true ) {
	_deprecated_function( __FUNCTION__, '5.9.0', 'wp_readonly()' );
	return wp_readonly( $readonly_value, $current, $display );
}