function remove_wp_plugin_dir($path) { $plugin = str_replace(WP_PLUGIN_DIR, '', $path); return substr($plugin, 1); }