diff --git a/plugins/woocommerce-admin/docs/examples/extensions/dashboard-section/woocommerce-admin-dashboard-section.php b/plugins/woocommerce-admin/docs/examples/extensions/dashboard-section/woocommerce-admin-dashboard-section.php index 13e73c2a48d..8a30c43ad46 100644 --- a/plugins/woocommerce-admin/docs/examples/extensions/dashboard-section/woocommerce-admin-dashboard-section.php +++ b/plugins/woocommerce-admin/docs/examples/extensions/dashboard-section/woocommerce-admin-dashboard-section.php @@ -15,7 +15,7 @@ function dashboard_section_register_script() { } wp_register_script( - 'add-report', + 'dashboard_section', plugins_url( '/dist/index.js', __FILE__ ), array( 'wp-hooks', @@ -27,6 +27,6 @@ function dashboard_section_register_script() { true ); - wp_enqueue_script( 'add-report' ); + wp_enqueue_script( 'dashboard_section' ); } add_action( 'admin_enqueue_scripts', 'dashboard_section_register_script' );