发布时间:2020-09-17
WordPress 常用函数 / sanitize_key,
清理 key 字符串,keys 是用来作为内部的标示符。
只允许消息数字和字母,破折号和下划线。
<?php sanitize_key( $key ); ?>
$key
(string) (required) String key
Default: None
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
(string)
Sanitized key
Since: 3.0.0
/wp-includes/formatting.php
全站搜索