filipvanreeth/block-analyzer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

filipvanreeth/block-analyzer

最新稳定版本:1.0.0

Composer 安装命令:

composer require filipvanreeth/block-analyzer

包简介

WordPress Block Analyzer plugin that helps you to analyze the blocks used on your site.

README 文档

README

The Block Analyzer plugin is a tool for analyzing the blocks used in your WordPress site. It provides information about the blocks used on each page, including their names, attributes, and other details.

Installation

To install the Block Analyzer plugin, follow these steps:

  1. Download the plugin files from the WordPress plugin repository or from the Gitlab repository.
  2. Upload the plugin files to the /wp-content/plugins/block-analyzer directory, or install the plugin through the WordPress plugins screen directly.
  3. Activate the plugin through the 'Plugins' screen in WordPress.

Usage

To use the Block Analyzer plugin, simply activate it and navigate to any page on your WordPress site. The plugin will automatically analyze the blocks used on the page and display the block used in (custom) posts and pages.

Configuration

The Block Analyzer plugin can be configured using the following filters:

  • block_analyzer/disable_block: Disables a specific block(s) from being analyzed.
  • block_analyzer/disable_core_blocks: Disables all core blocks from being analyzed.

Examples

// Disables the core/paragraph and core/columns blocks from being analyzed.

add_filter('block_analyzer/disable_block', function ($blocks) {
  $blocks[] = 'core/paragraph';
  $blocks[] = 'core/columns';
  return $blocks;
});

// Disables all core blocks from being analyzed.

add_filter('block_analyzer/disable_core_blocks', function ($status): bool {
	return false;
});

Contributing

Contributions to the Block Analyzer plugin are welcome! To contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request.

License

The Block Analyzer plugin is licensed under the GPL-2.0+ license.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-08-17