Support » Plugin: ZigWidgetClass » Plugin folder definition

  • Hi, I just wanted to mention that not everyone is using this kind of plugin folder structure:

    $this->plugin_folder = get_bloginfo('wpurl') . '/' . PLUGINDIR . '/' .
    dirname(plugin_basename(__FILE__)) . '/';

    It would probably be better to define it as:

    $this->plugin_folder = plugin_dir_url( __FILE__ );

    This is e.g. the case for users using the wp-skeleton structure.

    Thanks.

    https://wordpress.org/plugins/zigwidgetclass/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin folder definition’ is closed to new replies.