got_url_rewrite
函数
got_url_rewrite ( No parameters )
- 返回值
-
- (bool) Whether the server supports URL rewriting.
- 定义位置
-
-
wp-admin/includes/misc.php
, line 45
-
wp-admin/includes/misc.php
- 引入
- 3.7.0
- 弃用
- –
Returns whether the server supports URL rewriting.
Detects Apache’s mod_rewrite, IIS 7.0+ permalink support, and nginx.
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 ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。