get_id() ) { $basic_details = $template->get_section_by_id( 'basic-details' ); if ( $basic_details ) { $basic_details->add_block( [ 'id' => '{{namespaceSnakeCase}}-{{slugSnakeCase}}', 'order' => 40, 'blockName' => '{{namespaceSnakeCase}}/{{slugSnakeCase}}', 'attributes' => [ 'message' => '{{title}}', ] ] ); } } } add_filter( 'woocommerce_block_template_register', '{{namespaceSnakeCase}}_{{slugSnakeCase}}_add_block_to_product_editor', 100 );