Sti til fil

// saadan laves stien til plugin:
echo plugin_dir_url(__FILE__);

Efterfulgt at sti til en fil fx

// saadan laves stien til plugin:
 $fil = plugin_dir_url(__FILE__) . "minFil.php";

Published by Per Thykjaer Jensen

I teach code at the Multimedia Design and Communication program at Aarhus Business College. Expert: WordPress, Linux and JavaScript.