PluginProbe
Flamingo / 2.1
Flamingo v2.1
2.6.4 2.6.3 2.6.2 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.1.1 2.2 All 33 releases
flamingo / flamingo.php

flamingo.php in Flamingo 2.1, at flamingo.php

64 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Flamingo
4 Description: A trustworthy message storage plugin for Contact Form 7.
5 Author: Takayuki Miyoshi
6 Text Domain: flamingo
7 Domain Path: /languages/
8 Version: 2.1
9 */
10
11 define( 'FLAMINGO_VERSION', '2.1' );
12
13 define( 'FLAMINGO_PLUGIN', __FILE__ );
14
15 define( 'FLAMINGO_PLUGIN_BASENAME',
16 plugin_basename( FLAMINGO_PLUGIN ) );
17
18 define( 'FLAMINGO_PLUGIN_NAME',
19 trim( dirname( FLAMINGO_PLUGIN_BASENAME ), '/' ) );
20
21 define( 'FLAMINGO_PLUGIN_DIR',
22 untrailingslashit( dirname( FLAMINGO_PLUGIN ) ) );
23
24 if ( ! defined( 'FLAMINGO_MOVE_TRASH_DAYS' ) ) {
25 define( 'FLAMINGO_MOVE_TRASH_DAYS', 30 );
26 }
27
28 // Deprecated, not used in the plugin core. Use flamingo_plugin_url() instead.
29 define( 'FLAMINGO_PLUGIN_URL',
30 untrailingslashit( plugins_url( '', FLAMINGO_PLUGIN ) ) );
31
32 require_once FLAMINGO_PLUGIN_DIR . '/includes/functions.php';
33 require_once FLAMINGO_PLUGIN_DIR . '/includes/formatting.php';
34 require_once FLAMINGO_PLUGIN_DIR . '/includes/csv.php';
35 require_once FLAMINGO_PLUGIN_DIR . '/includes/capabilities.php';
36 require_once FLAMINGO_PLUGIN_DIR . '/includes/class-contact.php';
37 require_once FLAMINGO_PLUGIN_DIR . '/includes/class-inbound-message.php';
38 require_once FLAMINGO_PLUGIN_DIR . '/includes/class-outbound-message.php';
39 require_once FLAMINGO_PLUGIN_DIR . '/includes/user.php';
40 require_once FLAMINGO_PLUGIN_DIR . '/includes/comment.php';
41 require_once FLAMINGO_PLUGIN_DIR . '/includes/akismet.php';
42 require_once FLAMINGO_PLUGIN_DIR . '/includes/cron.php';
43
44 if ( is_admin() ) {
45 require_once FLAMINGO_PLUGIN_DIR . '/admin/admin.php';
46 }
47
48 /* Init */
49
50 add_action( 'init', 'flamingo_init' );
51
52 function flamingo_init() {
53
54 /* L10N */
55 load_plugin_textdomain( 'flamingo', false, 'flamingo/languages' );
56
57 /* Custom Post Types */
58 Flamingo_Contact::register_post_type();
59 Flamingo_Inbound_Message::register_post_type();
60 Flamingo_Outbound_Message::register_post_type();
61
62 do_action( 'flamingo_init' );
63 }
64