Description
Custom Action Block is a powerful WordPress plugin that adds a new block type to the Gutenberg editor. This block allows users to insert custom action hooks anywhere on their WordPress site, not just in posts and pages. This flexibility enables developers to add dynamic content or functionality at any location where blocks can be used, including:
– Posts and pages
– Custom post types
– Widget areas (if block-based widgets are enabled)
– Site-wide areas in block-based themes (header, footer, sidebar)
– Reusable blocks that can be inserted anywhere
By providing this level of flexibility, Custom Action Block opens up endless possibilities for customizing and extending your WordPress site’s functionality.
Usage
For Content Creators:
- Edit a post or page using the block editor
- Click the ‘+’ icon to add a new block
- Search for “Custom Action” in the block inserter
- Add the Custom Action block to your content
- In the block settings, specify a unique name for your action (e.g., “my_custom_action”)
Screenshots
Blocks
This plugin provides 1 block.
- Custom Action
Installation
- Upload the plugin files to the
/wp-content/plugins/custom-action-block
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
FAQ
-
Can I use Custom Action blocks in areas other than posts and pages?
-
Yes! Custom Action blocks can be used anywhere that supports blocks. This includes widget areas (if your theme supports block-based widgets), headers, footers, and other template parts in block-based themes.
-
Can I use multiple Custom Action blocks in a single post?
-
Yes, you can use as many Custom Action blocks as you need. Just make sure to give each a unique action name.
-
Is this plugin compatible with my theme?
-
This plugin should be compatible with any theme that supports the WordPress block editor (Gutenberg).
-
How can developers take advantage of these custom actions?
-
For example:
`php
“`
Reviews
Contributors & Developers
“Custom Action Block” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Custom Action Block” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0
- Initial release