Extending WooCommerce COD payment gateway in a plugin
问题 I would like to understand the sequence various classes are loaded in Wordpress. There are many plugins available in Wordpress, then who will be loaded earlier than another. Consider I would like to develop a plugin that will use some existing class of Woocommerce. Basically my custom plugin will extend some class of Woocommerce (for example : WC_Gateway_COD) How I can ensure the existing class ‘WC_Gateway_COD’ is already defined & loaded before it execute the below statement ? if (class