raguzman/wp-delog

WordPress 插件,通过在 WordPress 根目录下生成日志文件简化代码调试

dev-main 2024-05-15 09:03 UTC

This package is auto-updated.

Last update: 2024-09-15 09:51:21 UTC


README

WP Delog 是一个 WordPress 插件,通过在 WordPress 根目录下生成日志文件简化代码调试。

要求

  • PHP 7.0 或更高版本
  • WordPress 5.0 或更高版本

安装

通过 Composer

  1. 要求插件,请运行以下 Composer 命令

    composer require raguzman/wp-delog
  2. 从 WordPress 管理控制台激活插件

手动安装

  1. GitHub 仓库 下载插件。

  2. 将插件文件上传到 /wp-content/plugins 目录。

  3. 通过 WordPress 的“插件”菜单激活插件。

使用方法

要使用,只需在代码中包含 delog($var) 函数,并检查您 WordPress 根目录下的 delog.log 文件