[wordpress插件] Debug wp_redirect调试wp_redirect

wordpress 插件 文章 2020-04-14 08:40 457 0 全屏看文

AI助手支持GPT4.0

评分
96
描述

Important: It is not recommended you leave debugging enabled when you're done, the debug information exposes file paths of files as well as PHP arguments passed into functions from the PHP debug_backtrace() which may

重要提示:不建议您在完成调试后保持启用状态,调试信息会公开文件的文件路径以及从PHP debug_backtrace()传递给函数的PHP参数。

contain sensitive information.

包含敏感信息。

For those times when you have a lot of plugins and theme functions interacting and you just need to figure out what / where it’s redirecting.

在这些情况下,当您有大量的插件和主题功能进行交互时,您只需要弄清楚重定向的内容/位置即可。

This plugin outputs information about each wp_redirect call done on the front of a site.

此插件输出有关在网站正面进行的每个wp_redirect调用的信息。

To enable redirect debugging on a site, add this to your wp-config.php file:

要在站点上启用重定向调试,请将其添加到您的wp-config.php文件:

define( 'DEBUG_WP_REDIRECT', true );

  define('DEBUG_WP_REDIRECT',true);

To enable redirect debugging in the admin dashboard of a site, add this to your wp-config.php file:

要在网站的管理控制台中启用重定向调试,请将其添加到您的wp-config.php文件中:

define( 'DEBUG_WP_REDIRECT_ADMIN', true );

  define('DEBUG_WP_REDIRECT_ADMIN',true);

安装步骤

    1. Unpack the entire contents of this plugin zip file into your wp-content/plugins/ folder locally
    2. 将此插件zip文件的全部内容解压缩到本地的 wp-content / plugins / 文件夹中

    3. Upload to your site
    4. 上传到您的网站

    5. Navigate to wp-admin/plugins.php on your site (your WP Admin plugin page)
    6. 导航到您网站上的 wp-admin / plugins.php (您的WP Admin插件页面)

    7. Activate this plugin
    8. 激活此插件

    OR you can just install it with WordPress by going to Plugins >> Add New >> and type this plugin’s name

    或者您可以直接通过WordPress >> Add New >>并输入此插件的名称来将其安装在WordPress中

下载地址
https://downloads.wordpress.org/plugin/debug-wp-redirect.1.1.zip
-EOF-

AI助手支持GPT4.0