fix: Address issues with all 4 features

1. Admin Store Link - Add to WP admin bar (Menu.php) with proper option check
2. Activity Log - Fix Loading text to show correct state after data loads
3. Avatar Upload - Use correct option key woonoow_allow_custom_avatar
4. Downloadable Files - Connect to WooCommerce native:
   - Add downloads array to format_product_full
   - Add downloads/download_limit/download_expiry handling in update_product
   - Add downloads handling in create_product
This commit is contained in:
Dwindi Ramadhana
2026-01-05 00:22:08 +07:00
parent 51c759a4f5
commit 86dca3e9c2
5 changed files with 147 additions and 58 deletions

View File

@@ -111,6 +111,21 @@ class Menu {
'title' => __( 'WooNooW Standalone Admin', 'woonoow' ),
],
] );
// Add Store link if customer SPA is not disabled
$customer_spa_enabled = get_option( 'woonoow_customer_spa_enabled', true );
if ( $customer_spa_enabled ) {
$store_url = home_url( '/store/' );
$wp_admin_bar->add_node( [
'id' => 'woonoow-store',
'title' => '<span class="ab-icon dashicons-cart"></span><span class="ab-label">' . __( 'Store', 'woonoow' ) . '</span>',
'href' => $store_url,
'meta' => [
'title' => __( 'View Customer Store', 'woonoow' ),
'target' => '_blank',
],
] );
}
}
}