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

Senior Lecturer at the Multimedia Design and Communication Programme at Aarhus Business College. I teach code and UX. Linux evangelist and WordPress expert. View more posts