| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Copy Anything to Clipboard |
| 4 |
* Plugin URI: https://clipboard.agency/ |
| 5 |
* Description: Effortlessly Copy Text or HTML to Your Clipboard 📋 with Copy Anything to Clipboard. Whether it's Blockquotes, Wishes, Messages, Shayari, Offer Codes, Special Symbols, Code Snippets, Hidden Content, or anything else you desire, our plugin has you covered! 🥳 Explore the possibilities with <a href="https://clipboard.agency/">Copy Anything to Clipboard</a>. |
| 6 |
* Version: 3.4.3 |
| 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 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
exit; |
| 16 |
} |
| 17 |
|
| 18 |
if ( function_exists( 'ctc_fs' ) ) { |
| 19 |
ctc_fs()->set_basename( false, __FILE__ ); |
| 20 |
} else { |
| 21 |
// Set constants. |
| 22 |
define( 'COPY_THE_CODE_TITLE', esc_html__( 'Copy Anything to Clipboard', 'copy-the-code' ) ); |
| 23 |
define( 'COPY_THE_CODE_VER', '3.4.3' ); |
| 24 |
define( 'COPY_THE_CODE_FILE', __FILE__ ); |
| 25 |
define( 'COPY_THE_CODE_BASE', plugin_basename( COPY_THE_CODE_FILE ) ); |
| 26 |
define( 'COPY_THE_CODE_DIR', plugin_dir_path( COPY_THE_CODE_FILE ) ); |
| 27 |
define( 'COPY_THE_CODE_URI', plugins_url( '/', COPY_THE_CODE_FILE ) ); |
| 28 |
|
| 29 |
// DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK. |
| 30 |
if ( ! function_exists( 'ctc_fs' ) ) { |
| 31 |
require_once COPY_THE_CODE_DIR . 'classes/init.php'; |
| 32 |
} |
| 33 |
|
| 34 |
register_activation_hook( COPY_THE_CODE_FILE, 'copy_the_code_set_fresh_user' ); |
| 35 |
|
| 36 |
// Set as fresh user? |
| 37 |
function copy_the_code_set_fresh_user() { |
| 38 |
update_option( 'copy_the_code_fresh_user', 'yes' ); |
| 39 |
} |
| 40 |
|
| 41 |
require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code.php'; |
| 42 |
} |
| 43 |
|