Categories
Kanban WordPress

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";

By Per Thykjaer Jensen

Per is the WordPress expert at Business Academy Aarhus. Senior Lecturer at the Multimedia Design Programme. His background is in the Arts: MA Literature History and BA Art History. Later he added a MA in IT, interaction and Multimedia. And he is a wicked Linux user.