Custom Action Block

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:

  1. Edit a post or page using the block editor
  2. Click the ‘+’ icon to add a new block
  3. Search for « Custom Action » in the block inserter
  4. Add the Custom Action block to your content
  5. In the block settings, specify a unique name for your action (e.g., « my_custom_action »)

Captures d’écran

  • Custom action block (1/4)
  • Custom action name (2/4)
  • Use on your functions.php (3/4)
  • Action fire on front site (4/4)

Blocs

Cette extension fournit 1 bloc.

  • Custom Action

Installation

  1. Upload the plugin files to the /wp-content/plugins/custom-action-block directory, or install the plugin through the WordPress plugins screen directly.
  2. 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

24 septembre 2024
Loving the Custom Action Block plugin! It’s super easy to use and lets me add custom action hooks pretty much anywhere on my site, even in places I didn’t think possible — like widget areas and headers. I’ve been able to add cool features and dynamic content without any hassle. If you want more control over your WordPress site, this plugin is a must-have. Great job, devs!
20 septembre 2024
It gives you the flexibility to add custom hooks and dynamic content anywhere on your site, Ideal for developers, it allows for easy customization without touching theme files, While beginners might need some learning time, it’s perfect for anyone looking to enhance their site’s functionality with advanced customization options.I highly recommend it!
20 septembre 2024
Great plugin!! It really helped me integrate my code into specific areas I wanted.Thank you very much 🙂
19 septembre 2024
Amazing, so useful, what a great pluginWorks great and solved a lot of problems for me
Lire les 4 avis

Contributeurs/contributrices & développeurs/développeuses

« Custom Action Block » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

Traduisez « 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