| Server IP : 39.106.62.82 / Your IP : 216.73.216.253 Web Server : nginx/1.14.1 System : Linux iz2ze1m0zmp2dk5c3j5ap5z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /webdata/gohomesh.com/wp-content/plugins/flamingo/ |
Upload File : |
<?php
/*
Plugin Name: Flamingo
Description: A trustworthy message storage plugin for Contact Form 7.
Author: Takayuki Miyoshi
Text Domain: flamingo
Domain Path: /languages/
Version: 2.3
*/
define( 'FLAMINGO_VERSION', '2.3' );
define( 'FLAMINGO_PLUGIN', __FILE__ );
define( 'FLAMINGO_PLUGIN_BASENAME',
plugin_basename( FLAMINGO_PLUGIN )
);
define( 'FLAMINGO_PLUGIN_NAME',
trim( dirname( FLAMINGO_PLUGIN_BASENAME ), '/' )
);
define( 'FLAMINGO_PLUGIN_DIR',
untrailingslashit( dirname( FLAMINGO_PLUGIN ) )
);
if ( ! defined( 'FLAMINGO_MOVE_TRASH_DAYS' ) ) {
define( 'FLAMINGO_MOVE_TRASH_DAYS', 30 );
}
// Deprecated, not used in the plugin core. Use flamingo_plugin_url() instead.
define( 'FLAMINGO_PLUGIN_URL',
untrailingslashit( plugins_url( '', FLAMINGO_PLUGIN ) )
);
require_once FLAMINGO_PLUGIN_DIR . '/includes/functions.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/formatting.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/csv.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/capabilities.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/class-contact.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/class-inbound-message.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/class-outbound-message.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/user.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/comment.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/akismet.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/cron.php';
if ( is_admin() ) {
require_once FLAMINGO_PLUGIN_DIR . '/admin/admin.php';
}
/* Init */
add_action( 'init', function() {
/* Custom Post Types */
Flamingo_Contact::register_post_type();
Flamingo_Inbound_Message::register_post_type();
Flamingo_Outbound_Message::register_post_type();
add_filter(
'wp_untrash_post_status',
'flamingo_untrash_post_status',
10, 3
);
do_action( 'flamingo_init' );
}, 10, 0 );
function flamingo_untrash_post_status( $new_status, $post_id, $prev_status ) {
$flamingo_post_types = array(
Flamingo_Contact::post_type,
Flamingo_Inbound_Message::post_type,
Flamingo_Outbound_Message::post_type,
);
if ( in_array( get_post_type( $post_id ), $flamingo_post_types, true ) ) {
return $prev_status;
}
return $new_status;
}