AI助手支持GPT4.0
This plugin is derived from the no longer supported
此插件源自不再受支持的
WordPress Logging Service.
WordPress日志记录服务。
Despite that it is not compatiple with it, and there is no upgrade path from one
尽管它不兼容,并且没有从它升级的路径
to the other.
到另一个。 p>
ul>
Check to test if the plugin is active:
检查插件是否处于活动状态: p>
CLGS = true CLGS = true code> pre>Defined severity levels:定义的严重性级别: p>CLGS_NOSEVERITY = 0 CLGS_NOSEVERITY = 0CLGS_INFO = 1CLGS_INFO = 1CLGS_NOTICE = 2CLGS_NOTICE = 2CLGS_WARNING = 3CLGS_WARNING = 3CLGS_ERROR = 4CLGS_ERROR = 4CLGS_FATALERROR = 5CLGS_FATALERROR = 5 code> pre>Functions功能 h4>clgs_is_registered ( $category ) clgs_is_registered($ category) code> pre>string $category 字符串$ category code> li> ul>returns true if $category is registered.如果注册了 $ category code>,则 返回 em> true code>。 p>clgs_register ( $category, $description ) clgs_register($ category,$ description) code> pre>registers $category as a log category.将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
CLGS = true
code> pre>
Defined severity levels:
定义的严重性级别: p>
CLGS_NOSEVERITY = 0 CLGS_NOSEVERITY = 0CLGS_INFO = 1CLGS_INFO = 1CLGS_NOTICE = 2CLGS_NOTICE = 2CLGS_WARNING = 3CLGS_WARNING = 3CLGS_ERROR = 4CLGS_ERROR = 4CLGS_FATALERROR = 5CLGS_FATALERROR = 5 code> pre>Functions功能 h4>clgs_is_registered ( $category ) clgs_is_registered($ category) code> pre>string $category 字符串$ category code> li> ul>returns true if $category is registered.如果注册了 $ category code>,则 返回 em> true code>。 p>clgs_register ( $category, $description ) clgs_register($ category,$ description) code> pre>registers $category as a log category.将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
CLGS_NOSEVERITY = 0CLGS_INFO = 1CLGS_INFO = 1CLGS_NOTICE = 2CLGS_NOTICE = 2CLGS_WARNING = 3CLGS_WARNING = 3CLGS_ERROR = 4CLGS_ERROR = 4CLGS_FATALERROR = 5CLGS_FATALERROR = 5
CLGS_INFO = 1
CLGS_NOTICE = 2
CLGS_WARNING = 3
CLGS_ERROR = 4
CLGS_FATALERROR = 5
clgs_is_registered ( $category ) clgs_is_registered($ category) code> pre>string $category 字符串$ category code> li> ul>returns true if $category is registered.如果注册了 $ category code>,则 返回 em> true code>。 p>clgs_register ( $category, $description ) clgs_register($ category,$ description) code> pre>registers $category as a log category.将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_is_registered($ category)
string $category
字符串$ category code> li>
returns true if $category is registered.
true
$category
如果注册了 $ category code>,则 返回 em> true code>。 p>clgs_register ( $category, $description ) clgs_register($ category,$ description) code> pre>registers $category as a log category.将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
$ category code>,则 返回 em> true code>。 p>clgs_register ( $category, $description ) clgs_register($ category,$ description) code> pre>registers $category as a log category.将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
返回 em> true code>。 p>clgs_register ( $category, $description ) clgs_register($ category,$ description) code> pre>registers $category as a log category.将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
true code>。 p>clgs_register ( $category, $description ) clgs_register($ category,$ description) code> pre>registers $category as a log category.将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_register ( $category, $description ) clgs_register($ category,$ description) code> pre>registers $category as a log category.将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_register($ category,$ description)
registers $category as a log category.
将 $ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
$ category code>注册为日志类别。 $description will be shown in the $ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
$description will be shown in the
$description
$ description code>将显示在中management page.管理页面。It is good practice to use unique categories for each plugin that publishes最好对发布的每个插件使用唯一的类别log messages.日志消息。 p>string $category At most 190 (unicode) characters 字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li> ul>returns false if the category is already registered or it is too long. 返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
management page.
管理页面。
It is good practice to use unique categories for each plugin that publishes
最好对发布的每个插件使用唯一的类别
log messages.
日志消息。 p>
字符串$ category code>最多190个(unicode)字符 li>string $description can contain HTML same as comments (filtered by 字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)wp_kses_data) li>
string $description
字符串$ description code>可以包含与注释相同的HTML(由过滤 wp_kses_data)
wp_kses_data)
wp_kses_data) li>
returns false if the category is already registered or it is too long.
false
返回 em> false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
false code>(如果类别已经注册或类别太长)。 p>clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_clear ( $category ) clgs_clear($ category) code> pre>deletes all log entries of $category.删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_clear($ category)
deletes all log entries of $category.
删除 $ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
$ category code>的所有日志条目。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns number of deleted entries or false if action failed. 返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
字符串$ description code>现有类别 li>
returns number of deleted entries or false if action failed.
返回 em>已删除条目的数量,如果操作失败,则返回 false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
false code>。 p>clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_unregister( $category ); clgs_unregister($ category); code> pre>deletes all log entries and then removes $category.删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_unregister($ category);
deletes all log entries and then removes $category.
删除所有日志条目,然后删除 $ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
$ category code>。 p>string $description existing category 字符串$ description code>现有类别 li> ul>returns false if false if action failed.如果操作失败,则 返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
returns false if false if action failed.
如果操作失败,则
返回 em> false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
false code>如果为false。 p>clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_log( $category, $text, $severity = null, $user = null, $blog_id = null, $date = null ); clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null); code> pre>writes a new log entry in the specified category在指定的类别中写入新的日志条目 p>string $description a registered category name 字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li> ul>returns false if entering the log failed.如果输入日志失败, 返回 em> false code>。 p>
clgs_log($ category,$ text,$ severity = null,$ user = null,$ blog_id = null,$ date = null);
writes a new log entry in the specified category
在指定的类别中写入新的日志条目 p>
字符串$ description code>注册的类别名称 li>string $text the logged message, can contain HTML same as comments (filtered string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li>
string $text
string $ text code>记录的消息,可以包含与注释相同的HTML(已过滤by wp_kses_data)
by wp_kses_data)
wp_kses_data
通过 wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li>
wp_kses_data code>) li>int $severity one of defined severity levels (see above); int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORYCLGS_NOCATEGORY li>int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li>
int $severity
int $ severity code>定义的严重性级别之一(请参见上文);if missing defaults to 如果丢失,则默认为 CLGS_NOCATEGORY
if missing defaults to
如果丢失,则默认为
CLGS_NOCATEGORY
CLGS_NOCATEGORY li>
int | int |string |字符串WP_User $user user id, slug or WP user object are aceptable;可以接受WP_User $ user code>用户ID,slug或WP用户对象;if missing如果丢失defaults to current user (or a placeholder if none is logged in)默认为当前用户(如果未登录,则为占位符) li>int $blog_id blog id; int $ blog_id code>博客ID;if missing defaults to current blog如果缺少默认值,则为当前博客 li>int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li>
int |string |字符串WP_User $user
string |
字符串
WP_User $user
可以接受WP_User $ user code>用户ID,slug或WP用户对象;
if missing
如果丢失
defaults to current user (or a placeholder if none is logged in)
默认为当前用户(如果未登录,则为占位符) li>
int $blog_id
int $ blog_id code>博客ID;if missing defaults to current blog
if missing defaults to current blog
如果缺少默认值,则为当前博客 li>
int | int |double |双|string $date a UNIX timestamp or a string recognized by strtotime();字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time如果缺少默认值,则为当前时间 li>
int |double |双|string $date
double |
双|
string $date
strtotime()
字符串$ date code> UNIX时间戳或 strtotime() code>; 识别的字符串if missing defaults to current time
strtotime() code>; 识别的字符串if missing defaults to current time
if missing defaults to current time
如果缺少默认值,则为当前时间 li>
returns false if entering the log failed.
如果输入日志失败,
返回 em> false code>。 p>
false code>。 p>
wp-content/plugins
wp-content / plugins code> li>Activate the plugin from the Plugins menu.从插件 em>菜单激活插件。In Multisite installations, feel free在多站点安装中,随意to activate as a network plugin or to leave it to individual blogs.激活作为网络插件或将其留给各个博客。 li>Go to Settings -> Custom Logging Service for the next steps转到设置->自定义日志记录服务 em>进行下一步 li>
In Multisite installations, feel free
在多站点安装中,随意
to activate as a network plugin or to leave it to individual blogs.
激活作为网络插件或将其留给各个博客。 li>
ol>
of that level or above next to the menu entry for the log page.
级别或更高级别(位于日志页面的菜单项旁边)。 li>
You can change this filter later on the page.
您可以稍后在页面上更改此过滤器。 li>
This plugin does not generate any log messages by itself.
此插件本身不会生成任何日志消息。
You need other plugins to
您需要其他插件来
interact with it through the API;
通过API与之交互;
see the API section for details.
有关详细信息,请参见API部分。 p>
原文出处:http://www.sanshu.cn/a/9600.html
群主管理都是支付大佬