I have the plugin which have constant defined, i will call this plugin PLUGIN A:
if ( ! defined('BLA')){
define('BLA', 'http://google.com);
}
I want to make another plugin PLUGIN B which will define constant BLA before PLUGIN A. Is that possible? I guess Wordpress needs to read PLUGIN B before PLUGIN A, but in which order Wordpress is reading plugins?
WordPress loads plugins in a specific order. I found this question/answer here on Stackoverflow: https://wordpress.stackexchange.com/questions/63141/in-what-order-does-wordpress-load-plugin-files
So, the order is:
Hope this helps!