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 »)
Captures d’écran
Blocs
Cette extension fournit 1 bloc.
- 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
« `
Avis
Contributeurs/contributrices & développeurs/développeuses
« Custom Action Block » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.
ContributeursTraduisez « Custom Action Block » dans votre langue.
Le développement vous intéresse ?
Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.
Journal
1.0
- Initial release