Viewing file: wcp-contact-form.php (2.1 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /** * Plugin Name: WCP Contact Form * Plugin URI: https://wordpress.org/plugins/wcp-contact-form/ * Description: The contact form plugin with dynamic fields, CAPTCHA and other features that makes it easy to add custom contact form on your site in a few clicks * Version: 2.2.0 * Author: Webcodin * Author URI: https://profiles.wordpress.org/webcodin/ * License: GPL2 * * @package SCFP * @category Core * @author webcodin */ /* Copyright 2015 Webcodin (email : info@webcodin.com)
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 */ use Webcodin\WCPContactForm\Core\Agp_Autoloader;
if (!defined('ABSPATH')) { exit; }
add_action('init', 'scfp_output_buffer'); function scfp_output_buffer() { ob_start(); }
if (file_exists(dirname(__FILE__) . '/agp-core/agp-core.php' )) { include_once (dirname(__FILE__) . '/agp-core/agp-core.php' ); }
add_action( 'plugins_loaded', 'scfp_activate_plugin' ); function scfp_activate_plugin() { if (class_exists('Webcodin\WCPContactForm\Core\Agp_Autoloader') && !function_exists('SCFP')) { $autoloader = Agp_Autoloader::instance(); $autoloader->setClassMap(array( __DIR__ => array('classes'), 'namespaces' => array( 'Webcodin\WCPContactForm\Core' => array( __DIR__ => array('agp-core'), ), ), ));
function SCFP() { return SCFP::instance(); }
SCFP(); } }
scfp_activate_plugin();
|