Title: wp-includes/php-compat/readonly.php | Developer.WordPress.org

---

# File: wp-includes/php-compat/readonly.php

 * function[readonly()](https://developer.wordpress.org/reference/functions/readonly/)
 * Outputs the HTML readonly attribute.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/readonly/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/readonly/#uses)
   | Source: [wp-includes/php-compat/readonly.php:34](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/php-compat/readonly.php#L34-L37)