From 682299445c90f2c406dc92cb108aed92ffa75f57 Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Sun, 11 Dec 2022 09:37:16 +0200 Subject: [PATCH] Add hook_prefix to Component object. --- platforms/wordpress/templates/Template_Component.php | 1 + 1 file changed, 1 insertion(+) diff --git a/platforms/wordpress/templates/Template_Component.php b/platforms/wordpress/templates/Template_Component.php index 3e98e8d..14ab8cb 100644 --- a/platforms/wordpress/templates/Template_Component.php +++ b/platforms/wordpress/templates/Template_Component.php @@ -4,6 +4,7 @@ namespace AXEWEB_Blocks\Blocks\<%= ownerClass %>\<%= blockClassModel %>; class <%= blockClassModel %>_Component extends \Core\Component { const VERSION = '<%= version %>'; + public $hook_prefix = 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>'; public function get_content( $args = [] ): string { $default_args = apply_filters( 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>::default_args', [] ); // Not really practical.