wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



readonly › WordPress Function

Desde4.9.0
Obsoleto5.9.0
readonly ( $readonly_value, $current = true, $display = true )
Parâmetros: (3)
  • (mixed) $readonly_value One of the values to compare.
    Required: Yes
  • (mixed) $current Optional. The other value to compare if not just true. Default true.
    Required: No
    Padrão: true
  • (bool) $display Optional. Whether to echo or just return the string. Default true.
    Required: No
    Padrão: true
Ver:
Retorna:
  • (string) HTML attribute or empty string.
Definido em:
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.


Funções relacionadas: wp_readonly, rel_canonical, add_role, get_taxonomy

Fonte

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