Consider below example. I have two projects. I have used common class c
in both project. I want to load the latest class c
from anyone of the project.
E.g.
Project 1:
class a {
}
if ( ! class_exists( 'c' ) ) :
class c {
static $version = '1.0.0';
}
}
Project 2:
class b {
}
if ( ! class_exists( 'c' ) ) :
class c {
static $version = '1.0.2';
}
}
In above example, I'm expecting to load the class c
from Project 2
in both projects because it has latest 1.0.2
.
Any suggestions? Thanks in Advance.