| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- * Plugin Name: QDR - Temporary Shared Storage (via REST API)
- * Plugin URI: https://www.quadarax.com/plugins/qdr-temporary-shared-storage
- * Description: Extends WordPress functionality for REST API interface to upload temporary media files and provide permalink to download to anybody who has permalink (via password protected download page)
- * Version: 1.0.0
- * Requires at least: 6.8.1
- * Requires PHP: 8.2
- * Author: Dalibor Votruba
- * Author URI: https://www.quadarax.com
- * License: GPL v2 or later
- * License URI: https://www.gnu.org/licenses/gpl-2.0.html
- * Text Domain: qdr-temporary-shared-storage
- * Domain Path: /languages
- * WC requires at least: 9.0
- * WC tested up to: 9.8
- */
- // If this file is called directly, abort.
- if (!defined('WPINC')) {
- die;
- }
- // Define plugin version
- define('QDR_TSS_VERSION', '1.0.0');
- /**
- * The code that runs during plugin activation.
- */
- function activate_qdr_tss() {
- require_once plugin_dir_path(__FILE__) . 'includes/class-qdr-tss-activator.php';
- QDR_TSS_Activator::activate();
- }
- /**
- * The code that runs during plugin deactivation.
- */
- function deactivate_qdr_tss() {
- require_once plugin_dir_path(__FILE__) . 'includes/class-qdr-tss-deactivator.php';
- QDR_TSS_Deactivator::deactivate();
- }
- register_activation_hook(__FILE__, 'activate_qdr_tss');
- register_deactivation_hook(__FILE__, 'deactivate_qdr_tss');
- /**
- * The core plugin class that is used to define internationalization,
- * admin-specific hooks, and public-facing site hooks.
- */
- require plugin_dir_path(__FILE__) . 'includes/class-qdr-tss.php';
- /**
- * Begins execution of the plugin.
- *
- * @since 1.0.0
- */
- function run_qdr_tss() {
- $plugin = new QDR_TSS();
- $plugin->run();
- }
- // Let's go!
- run_qdr_tss();
|