Skip to content

Commit a65bd9f

Browse files
committed
Change some defaults
* Change Plugin Name to be GravityView Mod to match prior naming convention, also to have it closer to the core plugin in the Plugins page * All mods should be by GravityView, link to GravityView * Changed some code to allow for better search/replace of `__ID__`
1 parent 16b3f20 commit a65bd9f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

plugin.php

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
/**
3-
* Plugin Name: GV Addon: __description__
3+
* Plugin Name: GravityView Mod: __description__
44
* Plugin URI: https://github.com/katzwebservices/gv-snippets/tree/__ID__
55
* Description: __description__
6-
* Version: 0.1.0
7-
* Author: __author__
8-
* Author URI: __author_url__
6+
* Version: 1.0
7+
* Author: GravityView
8+
* Author URI: https://gravityview.co
99
* License: GPL-2.0+
1010
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1111
*/
@@ -15,8 +15,9 @@
1515
die;
1616
}
1717

18-
class GV_Snippet_ID {
19-
public static $ID = ID;
18+
class GV_Snippet___ID__ {
19+
20+
public static $ID = __ID__;
2021

2122
private static $_instance = null;
2223

@@ -32,4 +33,5 @@ public function __construct(){
3233

3334
}
3435
}
35-
add_action( 'plugins_loaded', array( 'GV_Snippet_ID', 'instance' ), 15 );
36+
37+
add_action( 'plugins_loaded', array( 'GV_Snippet___ID__', 'instance' ), 15 );

0 commit comments

Comments
 (0)