Browse Source

Add hook_prefix to Component object.

pull/8/head
Roman Axelrod 3 years ago
parent
commit
682299445c
  1. 1
      platforms/wordpress/templates/Template_Component.php

1
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.

Loading…
Cancel
Save