In this paper, we introduce a new two-dimensional (2-D) wavelength/time optical code division multiple access (OCDMA) known as 2D Modified-Flexible Cross Correlation (M-FCC) code. The 2-D M-FCC code is developed from the one-dimensional flexible cross correlation code families with flexibility in-phase cross-correlation at any given number of users and weights. The main goal is to reduce noise as well as multiple-access interference (MAI) at the same time to accommodate higher cardinality with minimum noise. The increment of cardinality is to be engaged towards 6G network accessibility. From the numerical results, it indicated good performance whereas the 2-D M-FCC code at bit rate 622 Mbps with at BER of 3.49 ×10-28, can accommodate 200 number of cardinalities enrichment. Moreover, the 2-D M-FCC code shows good SNR curves as gradually decreases as the number of users increases at different bit rate 155 Mbps, 622 Mbps, 1.1 Gbps and 2.5 Gbps, respectively.