-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-oquegd-plugin.php
52 lines (40 loc) · 1.54 KB
/
wp-oquegd-plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
Plugin Name: WP O que e? GD
Plugin URI: http://www.procergs.rs.gov.br
Description: Plugin Wordpress O que e? GD, desenvolvido pela PROCERGS.
Version: 1.0.0
Author: Cristiane | Felipe | Leo
Author URI: http://www.procergs.rs.gov.br
*/
/* Copyright 2012
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class WPOqueGD{
public function ativar(){
add_option('wp_oquegd', '');
}
public function desativar(){
delete_option('wp_oquegd');
}
}
$prefix = 'wp_oquegd_';
$pathPlugin = substr(strrchr(dirname(__FILE__),DIRECTORY_SEPARATOR),1).DIRECTORY_SEPARATOR.basename(__FILE__);
// Função ativar
register_activation_hook( $pathPlugin, array('WPOqueGD','ativar'));
// Função desativar
register_deactivation_hook( $pathPlugin, array('WPOqueGD','desativar'));
include_once('wp-oquegd-custom_post.php');
include_once('wp-oquegd-custom_taxonomy.php');
include_once('wp-oquegd-custom_metabox.php');
include_once('wp-oquegd-widget.php');
?>