函数原型
got_url_rewrite(): bool
函数描述
Returns whether the server supports URL rewriting.
是否弃用
未弃用
函数参数
无
函数返回值
bool Whether the server supports URL rewriting.
函数位置
File: wp-admin/includes/misc.php.
函数源码
function got_url_rewrite() {
$got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks() );
/**
* Filters whether URL rewriting is available.
*
* @since 3.7.0
*
* @param bool $got_url_rewrite Whether URL rewriting is available.
*/
return apply_filters( 'got_url_rewrite', $got_url_rewrite );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |

