New answers tagged linux
0
When writing a plugin, I define a few constants including the path to the plugin's root folder, and its "name" as used in some admin hooks:
define('WPSE_102681_PLUGIN_NAME', basename(dirname(__FILE__)) . '/' . basename(__FILE__));
I've found that plugins_url() happily takes that constant, which is useful when referencing files from subfolders of the ...
Top 50 recent answers are included