-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwpcf.php
79 lines (63 loc) · 2.34 KB
/
wpcf.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/*
Plugin Name: Toolset Types
Plugin URI: http://wordpress.org/extend/plugins/types/
Description: Toolset Types defines custom content in WordPress. Easily create custom post types, fields and taxonomy and connect everything together.
Author: OnTheGoSystems
Author URI: http://www.onthegosystems.com
Version: 2.3.5
License: GPLv2 or later
Types is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.
Types 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 Types. If not, see http://www.gnu.org/licenses/gpl-2.0.html.
*/
// abort if called directly
if ( ! function_exists( 'add_action' ) ) {
die( 'Types is a WordPress plugin and can not be called directly.' );
}
// version
if ( ! defined( 'TYPES_VERSION' ) ) {
define( 'TYPES_VERSION', '2.3.5' );
}
// backward compatibility
if ( ! defined( 'WPCF_VERSION' ) ) {
define( 'WPCF_VERSION', TYPES_VERSION );
}
// release notes
if ( ! defined( 'TYPES_RELEASE_NOTES' ) ) {
define(
'TYPES_RELEASE_NOTES',
'https://wp-types.com/version/types-' . str_replace( '.', '-', TYPES_VERSION )
. '/?utm_source=typesplugin&utm_campaign=types&utm_medium=release-notes-admin-notice&utm_term=Types%20' . TYPES_VERSION . '%20release%20notes'
);
}
/*
* Path Constants
*/
if ( ! defined( 'TYPES_ABSPATH' ) ) {
define( 'TYPES_ABSPATH', dirname( __FILE__ ) );
}
if ( ! defined( 'TYPES_RELPATH' ) ) {
define( 'TYPES_RELPATH', plugins_url() . '/' . basename( TYPES_ABSPATH ) );
}
if ( ! defined( 'TYPES_DATA' ) ) {
define( 'TYPES_DATA', dirname( __FILE__ ) . '/application/data' );
}
/*
* Bootstrap Types
*/
require_once( dirname( __FILE__ ) . '/application/bootstrap.php' );
//
// Activation and deactivation hooks must be defined in the main file.
//
register_deactivation_hook( __FILE__, 'wpcf_deactivation_hook' );
register_activation_hook( __FILE__, 'wpcf_activation_hook' );
// adds "Leave feedback" link on plugins list page
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'types_plugin_action_links' );