If you have a class MyClass
loaded via Composer, use this snippet to find the path to the class definition:
$reflection = new ReflectionClass( 'MyClass' );
echo $reflection->getFileName();
If you have a class MyClass
loaded via Composer, use this snippet to find the path to the class definition:
$reflection = new ReflectionClass( 'MyClass' );
echo $reflection->getFileName();
🔥 HOT: Interested in boosting your WordPress SEO? My Slim SEO plugin is a super lighweight and automated plugin that handles most the hard work for you: meta tags, sitemap, redirection, schema & link building.
👉 Have a look and you will love it: wpslimseo.com