^ 回到顶部
  • 人生没有定律,每个人都有自己的节奏
  • 本站wordpress建站教程均通过实践后发布,希望对你有帮助
  • 希望你的坚持,都是因为热爱,而不是因为不甘心
  • 8年wordpress建站经验,5星服务品质
  • 那些不愿意让你吃亏的人,才是真正值得你深交的人,也是值得你付出时间的人
  • 阿里云2核2g仅需86元/年

wordpress函数got_mod_rewrite()用法示例

got_mod_rewrite()

Returns whether the server is running Apache with the mod_rewrite module loaded.


描述


返回值

(bool)

新用户2核2g仅需86元/年    领取1153套模板    免费cdn流量包    ¥3188礼包


源代码

File: wp-admin/includes/misc.php

function got_mod_rewrite() {
	$got_rewrite = apache_mod_loaded('mod_rewrite', true);

	/**
	 * Filters whether Apache and mod_rewrite are present.
	 *
	 * This filter was previously used to force URL rewriting for other servers,
	 * like nginx. Use the {@see 'got_url_rewrite'} filter in got_url_rewrite() instead.
	 *
	 * @since 2.5.0
	 *
	 * @see got_url_rewrite()
	 *
	 * @param bool $got_rewrite Whether Apache and mod_rewrite are present.
	 */
	return apply_filters( 'got_rewrite', $got_rewrite );
}

更新日志

Version 描述
2.0.0 Introduced.

相关函数

Uses

  • wp-admin/includes/misc.php:
    got_rewrite
  • wp-includes/functions.php:
    apache_mod_loaded()
  • wp-includes/plugin.php:
    apply_filters()

Used By

  • wp-admin/includes/network.php:
    network_step1()
  • wp-admin/includes/misc.php:
    save_mod_rewrite_rules()
  • wp-admin/includes/misc.php:
    got_url_rewrite()

让小雨知道,这篇文章帮到了你
扫码关注微信公众号zs40086(微搜片)随时随地微信看片,抢先福利电影等你来

热门推荐

如有疑问,请前往问答中心反馈!

反馈