1 | <?php |
||
24 | class Auto_Load_Next_Post_Install { |
||
|
|||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @since 1.0.0 |
||
30 | * @access public |
||
31 | */ |
||
32 | public function __construct() { |
||
36 | |||
37 | /** |
||
38 | * Install Auto Load Next Post |
||
39 | * |
||
40 | * @since 1.0.0 |
||
41 | * @access public |
||
42 | */ |
||
43 | public function install() { |
||
53 | |||
54 | /** |
||
55 | * Insert the install date of the plugin. |
||
56 | * |
||
57 | * @since 1.4.4 |
||
58 | * @access public |
||
59 | * @return string |
||
60 | */ |
||
61 | public static function insert_install_date() { |
||
69 | |||
70 | /** |
||
71 | * Refresh the permalinks on deactivating the plugin. |
||
72 | * |
||
73 | * @since 1.0.0 |
||
74 | * @access public |
||
75 | */ |
||
76 | public function deactivate() { |
||
79 | |||
80 | /** |
||
81 | * Default Options |
||
82 | * |
||
83 | * Sets up the default options defined on the settings pages. |
||
84 | * |
||
85 | * @since 1.0.0 |
||
86 | * @access public |
||
87 | */ |
||
88 | public function create_options() { |
||
103 | |||
104 | /** |
||
105 | * Delete all plugin options. |
||
106 | * |
||
107 | * @since 1.0.0 |
||
108 | * @access public |
||
109 | * @global $wpdb |
||
110 | */ |
||
111 | public function delete_options() { |
||
117 | |||
118 | } // END if class. |
||
119 | |||
123 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.