Skip to content

Commit 71e6dff

Browse files
authored
use plugin_dir_path
1 parent 2491dbb commit 71e6dff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asasvirtuais-wp.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* Asas Virtuais WP
44
*
55
* Plugin Name: Asas Virtuais WP
6-
* Version: 0.2.2
6+
* Version: 0.3.0
77
*/
88

99
try {
1010
// Require the Composer autoloader.
11-
require_once __DIR__ . '/vendor/autoload.php';
11+
require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
1212

1313
// Your existing code to require the main plugin file.
14-
require_once './src/main.php';
14+
require_once plugin_dir_path(__FILE__) . 'src/main.php';
1515
} catch (\Throwable $th) {
1616
error_log($th);
1717
}

0 commit comments

Comments
 (0)