File: /home/globfdxw/www/wp-content/plugins/wpforms-pdf/wpforms-pdf.php
<?php
/**
* Plugin Name: WPForms PDF
* Plugin URI: https://wpforms.com
* Description: Turn form entries into beautifully designed PDFs.
* Author: WPForms
* Author URI: https://wpforms.com
* Version: 1.4.0
* Requires at least: 5.5
* Requires PHP: 7.2
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wpforms-pdf
* Domain Path: /languages
*
* WPForms 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.
*
* WPForms 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 WPForms. If not, see <https://www.gnu.org/licenses/>.
*
* @since 1.0.0
* @author WPForms
* @package WPFormsPDF
* @license GPL-2.0+
* @copyright Copyright (c) 2024, WPForms LLC
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use WPFormsPDF\Install;
use WPFormsPDF\Plugin;
/**
* Plugin version.
*
* @since 1.0.0
*/
const WPFORMS_PDF_VERSION = '1.4.0';
/**
* Plugin FILE.
*
* @since 1.0.0
*/
const WPFORMS_PDF_FILE = __FILE__;
/**
* Plugin PATH.
*
* @since 1.0.0
*/
define( 'WPFORMS_PDF_PATH', wp_normalize_path( plugin_dir_path( WPFORMS_PDF_FILE ) ) );
/**
* Plugin URL.
*
* @since 1.0.0
*/
define( 'WPFORMS_PDF_URL', plugin_dir_url( WPFORMS_PDF_FILE ) );
/**
* Load the plugin files.
*
* @since 1.0.0
*/
function wpforms_pdf_load() {
$requirements = [
'file' => WPFORMS_PDF_FILE,
'wpforms' => '1.9.9',
];
if ( ! function_exists( 'wpforms_requirements' ) || ! wpforms_requirements( $requirements ) ) {
return;
}
wpforms_pdf();
}
add_action( 'wpforms_loaded', 'wpforms_pdf_load' );
/**
* Get the instance of the `\WPFormsPDF\Plugin` class.
* This function is useful for quickly grabbing data used throughout the plugin.
*
* @since 1.0.0
*
* @return Plugin
*/
function wpforms_pdf(): Plugin {
return Plugin::get_instance();
}
require_once WPFORMS_PDF_PATH . 'vendor/autoload.php';
// Load installation things immediately for a reason how activation hook works.
new Install();