diff --git a/plugin.php b/plugin.php index 525fc46..c7cb78c 100644 --- a/plugin.php +++ b/plugin.php @@ -163,7 +163,7 @@ class PluginName { private function load_file( $name, $file_path, $is_script = false ) { $url = plugins_url($file_path, __FILE__); - $file = plugins_dir_path(__FILE__) . $file_path; + $file = plugin_dir_path(__FILE__) . $file_path; if( file_exists( $file ) ) { if( $is_script ) {