| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/INVOICE/wp-content/plugins/quick-embed-pdf/ |
Upload File : |
<?php
/**
* Plugin Name: Quick Embed PDF
* Description: A lightweight plugin to embed and display PDF files directly in WordPress posts and pages using a shortcode.
* Version: 1.1
* Author: Mark
* License: GPL-2.0+
* Text Domain:quick-embed-pdf
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'QEPW_VERSION', '1.1' );
define( 'QEPW_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'QEPW_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
require_once QEPW_PLUGIN_DIR . 'includes/class-qepw-viewer.php';
require_once QEPW_PLUGIN_DIR . 'includes/class-qepw-admin.php';
add_action( 'plugins_loaded', [ 'QEPW_Viewer', 'init' ] );
add_action( 'plugins_loaded', [ 'QEPW_Admin', 'init' ] );