Create plugin with multiple blocks

I edited the start/build scripts in package.json to this and it works. “build”: “wp-scripts build –webpack-src-dir=block/post-type-register/src –output-path=block/post-type-register/build”, “start”: “wp-scripts start –webpack-src-dir=block/post-type-register/src –output-path=block/post-type-register/build”

Hook automatic_updates_complete to autoupdate plugin

I found a solution: function my_function_to_run_on_autoupdate(array $results ): void { // Iterate through the plugins being updated and check if ours is there. foreach ( $results[‘plugin’] as $plugin ) { if ( isset( $plugin->item->slug ) && strlen( $plugin->item->slug ) > 0 // ‘your-plugin-slug’ is usually the folder name of your plugin && $plugin->item->slug === ‘your-plugin-slug’ … Read more