whitespace-se/wordpress-plugin-a11ystack

Wordpress插件,为Wordpress添加a11ystack特定的增强和功能

v2.0.0 2023-11-13 16:14 UTC

This package is auto-updated.

Last update: 2024-09-15 12:32:41 UTC


README

Wordpress插件,为Wordpress添加a11ystack特定的增强和功能。

如何安装

如果您想将此插件用作MU插件,请首先将其添加到您的composer.json中

{
  "extra": {
    "installer-paths": {
      "path/to/your/mu-plugins/{$name}/": [
        "whitespace-se/wordpress-plugin-a11ystack"
      ]
    }
  }
}

其中 path/to/your/mu-plugins 是类似 wp-content/mu-pluginsweb/app/mu-plugins 的路径。

然后通过composer获取插件

composer require whitespace-se/wordpress-plugin-a11ystack

配置

将这些常量设置为true以启用功能。

  • WP_A11YSTACK_ENABLE_FEEDBACK_MODULE: 反馈模块
  • WP_A11YSTACK_ENABLE_OPEN_GRAPH_FIELDS: Open graph字段

贡献

使用此命令生成新的pot文件

wp i18n make-pot . --exclude=vendor,wp-content,node_modules languages/whitespace-a11ystack.pot