Meta box:
- Replace generic add_meta_boxes hook with screen-specific
add_meta_boxes_shop_order and add_meta_boxes_woocommerce_page_wc-orders
so the box reliably appears on both classic and HPOS order edit pages
Order Actions dropdown:
- Hook woocommerce_order_actions filter to inject "phpList: Add to X list"
entries for every configured list (only lists with a saved ID appear)
- Register individual woocommerce_order_action_woolist_sync_{list_id}
handlers via closures at init time so WooCommerce can process them
- Shared do_sync() used by both the dropdown action and the meta box AJAX;
appends an order note (visible in order timeline) on success or failure
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>