Skip to content

Commit

Permalink
add replacement for the new Blocks filter
Browse files Browse the repository at this point in the history
  • Loading branch information
petitphp committed Mar 1, 2021
1 parent 1cf964d commit 6adfed9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Command/ScaffoldPluginCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ protected function execute( InputInterface $input, OutputInterface $output ) {
$pluginViewFolderName = $this->askAndConfirm( $io, "What is your plugin's view folder name ? (e.g: 'my-plugin') " );
self::doStrReplace( $installPath, 'bea-pb', $pluginViewFolderName );

// blocks filter
self::doStrReplace( $installPath, 'bea_pb_blocks', str_replace( '-', '_', $pluginName ) . '_blocks' );

if ( $is_psr_4 && false === $no_autoload ) {

/**
Expand Down

0 comments on commit 6adfed9

Please sign in to comment.