Download the PHP package wp-forge/custom-block-attributes without Composer

On this page you can find all versions of the php package wp-forge/custom-block-attributes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package custom-block-attributes

Custom Block Attributes

A WordPress plugin that allows users to add custom HTML attributes to any block in the WordPress Block Editor (Gutenberg).

WordPress PHP License

Description

Custom Block Attributes extends the WordPress Block Editor by adding the ability to set custom HTML attributes on any block. This is particularly useful for developers and advanced users who need to add specific attributes for styling, JavaScript functionality, accessibility, or third-party integrations.

Features

Installation

Manual Installation

  1. Download the plugin zip file
  2. Log in to your WordPress admin panel and navigate to Plugins → Add New
  3. Click the "Upload Plugin" button at the top of the page
  4. Choose the downloaded zip file and click "Install Now"
  5. Activate the plugin through the 'Plugins' menu in WordPress

Using Composer

Usage

  1. Edit a post or page using the Block Editor
  2. Select any block you want to add custom attributes to
  3. In the block settings sidebar, scroll down to find the "Custom HTML Attributes" panel
  4. Add attribute keys and values as needed
  5. The attributes will be applied to the block's HTML output on the frontend

Example

If you want to add a custom data attribute to a paragraph block:

  1. Select the paragraph block
  2. Open the "Custom HTML Attributes" panel in the sidebar
  3. Enter "data-custom" as the attribute key
  4. Enter "value" as the attribute value
  5. Click "Add Attribute"

The resulting HTML on the frontend will be:

Requirements

Frequently Asked Questions

Will this work with all blocks?

Yes, this plugin is designed to work with all WordPress blocks, including core blocks, theme blocks, and blocks from other plugins.

Can I add any HTML attribute?

Yes, you can add any valid HTML attribute. However, some attributes may be overridden by WordPress or the theme if they conflict with existing attributes.

Will this affect my site's performance?

The plugin is lightweight and only loads in the admin when editing posts or pages. It has minimal impact on frontend performance.

Changelog

1.0.1

1.0.0

Credits

Developed by Micah Wood

License

This plugin is licensed under the GPL v2 or later.

A copy of the license is included in the root of the plugin's directory. The file is named LICENSE.


All versions of custom-block-attributes with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wp-forge/custom-block-attributes contains the following files

Loading the files please wait ....