File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 33 * Asas Virtuais WP
44 *
55 * Plugin Name: Asas Virtuais WP
6- * Version: 0.3.0
6+ * Version: 0.3.1
77 */
88
99try {
1010 // Require the Composer autoloader.
1111 require_once plugin_dir_path (__FILE__ ) . 'vendor/autoload.php ' ;
12-
12+ \YahnisElsts \PluginUpdateChecker \v5 \PucFactory::buildUpdateChecker (
13+ 'https://raw.githubusercontent.com/asas-virtuais/asasvirtuais-wp/main/metadata.json ' ,
14+ __DIR__ . '/asasvirtuais-wp.php ' ,
15+ 'asasvirtuais-wp '
16+ );
1317 // Your existing code to require the main plugin file.
1418 require_once plugin_dir_path (__FILE__ ) . 'src/main.php ' ;
1519} catch (\Throwable $ th ) {
Original file line number Diff line number Diff line change 1111 * it will be WordPress specific and I vow to keep it well maintained.
1212 */
1313
14- use \YahnisElsts \PluginUpdateChecker \v5 \PucFactory ;
1514
1615try {
1716
18- $ myUpdateChecker = PucFactory::buildUpdateChecker (
19- 'https://raw.githubusercontent.com/asas-virtuais/asasvirtuais-wp/main/metadata.json ' ,
20- __FILE__ ,
21- 'asasvirtuais-wp '
22- );
17+ add_action ( 'admin_menu ' , function () {
18+ add_menu_page (
19+ 'Asas Virtuais WP ' ,
20+ 'Asas Virtuais ' ,
21+ 'manage_options ' ,
22+ 'asasvirtuais '
23+ );
24+ } );
2325
2426} catch (\Throwable $ th ) {
2527 error_log ($ th );
You can’t perform that action at this time.
0 commit comments