芝麻web文件管理V1.00
编辑当前文件:/var/www/italafricacentrale.com/wp-content/plugins/pdf-embedder/pdf_embedder.php
. */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Plugin version. * * @since 4.7.0 */ const PDFEMB_VERSION = '4.9.2'; /** * Plugin Folder Path. * * @since 4.7.0 */ define( 'PDFEMB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /** * Plugin Folder URL. * * @since 4.7.0 */ define( 'PDFEMB_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /** * Plugin Root File. * * @since 4.7.0 */ const PDFEMB_PLUGIN_FILE = __FILE__; /** * Plugin requirements. * TODO: improve the logic behind this check. */ if ( version_compare( PHP_VERSION, '7.2', '<' ) ) { include_once __DIR__ . '/requirements.php'; // Do not process the plugin code further. return; } require_once __DIR__ . '/vendor/autoload.php'; /* * Action Scheduler requires a special loading procedure. * * @since 4.8.0 */ add_action( 'plugins_loaded', static function() { $options = ( new \PDFEmbedder\Options() )->get(); if ( \PDFEmbedder\Options::is_on( $options['usagetracking'] ) ) { require_once PDFEMB_PLUGIN_DIR . 'vendor/woocommerce/action-scheduler/action-scheduler.php'; } }, -10 ); register_activation_hook( __FILE__, '\PDFEmbedder\Plugin::activated' ); /** * Load the plugin instance. * * @since 4.7.0 */ function pdf_embedder(): \PDFEmbedder\Plugin { static $plugin; if ( empty( $plugin ) ) { $plugin = new \PDFEmbedder\Plugin(); $plugin->hooks(); } return $plugin; } add_action( 'plugins_loaded', 'pdf_embedder' );