| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Copy Anything to Clipboard |
| 4 |
* Plugin URI: https://clipboard.agency/ |
| 5 |
* Description: Easily copy text or HTML to your clipboard 📋 with Copy Anything to Clipboard! Whether you need blockquotes, messages, wishes, shayari, offer codes, special symbols, code snippets, hidden content, or anything else, our plugin has you covered. 🥳 Discover all the possibilities with <a href="https://clipboard.agency/">Copy Anything to Clipboard</a>. |
| 6 |
* Version: 4.1.4 |
| 7 |
* Author: Clipboard Team |
| 8 |
* Author URI: https://clipboard.agency/ |
| 9 |
* Text Domain: copy-the-code |
| 10 |
* |
| 11 |
* @package Copy the Code |
| 12 |
* |
| 13 |
*/ |
| 14 |
|
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
// Load Composer autoloader. |
| 20 |
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { |
| 21 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 22 |
} |
| 23 |
|
| 24 |
if ( function_exists( 'ctc_fs' ) ) { |
| 25 |
ctc_fs()->set_basename( false, __FILE__ ); |
| 26 |
} else { |
| 27 |
// Set constants. |
| 28 |
define( 'COPY_THE_CODE_TITLE', 'Copy Anything to Clipboard' ); |
| 29 |
define( 'COPY_THE_CODE_VER', '4.1.4' ); |
| 30 |
define( 'COPY_THE_CODE_FILE', __FILE__ ); |
| 31 |
define( 'COPY_THE_CODE_BASE', plugin_basename( COPY_THE_CODE_FILE ) ); |
| 32 |
define( 'COPY_THE_CODE_DIR', plugin_dir_path( COPY_THE_CODE_FILE ) ); |
| 33 |
define( 'COPY_THE_CODE_URI', plugins_url( '/', COPY_THE_CODE_FILE ) ); |
| 34 |
define( 'COPY_THE_CODE_GUTENBERG_BLOCKS', COPY_THE_CODE_DIR . 'classes/gutenberg/' ); |
| 35 |
|
| 36 |
// DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK. |
| 37 |
if ( ! function_exists( 'ctc_fs' ) ) { |
| 38 |
require_once COPY_THE_CODE_DIR . 'classes/init.php'; |
| 39 |
} |
| 40 |
|
| 41 |
register_activation_hook( COPY_THE_CODE_FILE, 'copy_the_code_set_fresh_user' ); |
| 42 |
|
| 43 |
// Set as fresh user? |
| 44 |
function copy_the_code_set_fresh_user() { |
| 45 |
update_option( 'copy_the_code_fresh_user', 'yes' ); |
| 46 |
} |
| 47 |
|
| 48 |
require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code.php'; |
| 49 |
} |
| 50 |
|