Browse Source

Pass $args parameter to `content` hook.

master
Roman Axelrod 9 months ago
parent
commit
5dd326be0f
  1. 2
      platforms/wordpress/templates/Template_Basic_Component.php

2
platforms/wordpress/templates/Template_Basic_Component.php

@ -33,7 +33,7 @@ class <%= blockClassModel %>_Component extends \Core\Component {
$output = ( include( __DIR__ . '/templates/<%= blockFilename %>.template.php' ) )( $args, self::class ); $output = ( include( __DIR__ . '/templates/<%= blockFilename %>.template.php' ) )( $args, self::class );
return apply_filters( 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>::content', $output ); return apply_filters( 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>::content', $output, $args );
} }
function register_custom_logic(): void { function register_custom_logic(): void {

Loading…
Cancel
Save