allow_major_auto_core_updates
apply_filters( ‘allow_empty_comment’, bool $allow_empty_comment , array $commentdata )
过滤器::过滤是否启用主要的自动核心更新。
Filter Hook: Filters whether to enable major automatic core updates.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$allow_empty_comment | (bool) | 是否允许空评论。默认为false。 |
$commentdata | (array) | 要发送到wp_insert_comment()的注释数据数组。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.1.0 | wp-admin/includes/class-core-upgrader.php:377 | 1 | 0 |
allow_major_auto_core_updates 为WP2原创文章,链接:https://www.wp2.cn/hook/allow_major_auto_core_updates/