Can someone tell me if either of these two methods has an advantage over the other and why?
$mydir = ABSPATH.\'/wp-content/themes/mytheme/images\';
ABSPATH is defined variable -> define("ABSPATH",__FILE__
);
if i directly use magic constant __FILE__
.it will produce same result.
In CMS ABSPATH and framework use BASEPATH is used to get root information in the form of defined variable . In the end with the help of both we get same accurate result.