PluginProbe
Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code / 5.5.4
Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code v5.5.4
5.5.4 5.5.3 3.1.0 3.2.0 3.2.1 3.3.0 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.6.0 3.7.0 3.8.0 3.8.1 3.8.2 3.8.3 4.0.0 4.0.2 4.0.3 4.0.4 4.0.5 4.1.0 All 79 releases
← All changes | copy-the-code.php +63 -44 4.0.3 → 5.5.4 View file →
@@ -1,44 +1,63 @@
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.0.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 -
15 -if ( ! defined( 'ABSPATH' ) ) {
16 - exit;
17 -}
18 -
19 -if ( function_exists( 'ctc_fs' ) ) {
20 - ctc_fs()->set_basename( false, __FILE__ );
21 -} else {
22 - // Set constants.
23 - define( 'COPY_THE_CODE_TITLE', esc_html__( 'Copy Anything to Clipboard', 'copy-the-code' ) );
24 - define( 'COPY_THE_CODE_VER', '4.0.3' );
25 - define( 'COPY_THE_CODE_FILE', __FILE__ );
26 - define( 'COPY_THE_CODE_BASE', plugin_basename( COPY_THE_CODE_FILE ) );
27 - define( 'COPY_THE_CODE_DIR', plugin_dir_path( COPY_THE_CODE_FILE ) );
28 - define( 'COPY_THE_CODE_URI', plugins_url( '/', COPY_THE_CODE_FILE ) );
29 - define( 'COPY_THE_CODE_GUTENBERG_BLOCKS', COPY_THE_CODE_DIR . 'classes/gutenberg/' );
30 -
31 - // DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK.
32 - if ( ! function_exists( 'ctc_fs' ) ) {
33 - require_once COPY_THE_CODE_DIR . 'classes/init.php';
34 - }
35 -
36 - register_activation_hook( COPY_THE_CODE_FILE, 'copy_the_code_set_fresh_user' );
37 -
38 - // Set as fresh user?
39 - function copy_the_code_set_fresh_user() {
40 - update_option( 'copy_the_code_fresh_user', 'yes' );
41 - }
42 -
43 - require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code.php';
44 -}
1 +<?php // @codingStandardsIgnoreLine
2 +/**
3 + * Copy Anything to Clipboard Plugin.
4 + *
5 + * @package Copy Anything to Clipboard
6 + * @copyright Copyright (C) 2026, Clipboard Agency - [email protected]
7 + * @link https://clipboard.agency
8 + * @since 5.0.0
9 + *
10 + * @wordpress-plugin
11 + * Plugin Name: Copy Anything to Clipboard
12 + * Plugin URI: https://clipboard.agency/
13 + * Description: Add copy-to-clipboard buttons to any element with the powerful <strong>Global Injector</strong> — no coding required. Features visual style presets (Button, Icon, Cover), display conditions, and live preview. Perfect for <strong>Code Snippets</strong>, <strong>Coupons</strong>, <strong>WooCommerce SKUs</strong>, and more.
14 + * Version: 5.5.4
15 + * Author: Clipboard Agency
16 + * Author URI: https://clipboard.agency/
17 + * License: GPL v3
18 + * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
19 + * Text Domain: ctc
20 + * Domain Path: /languages
21 + *
22 + */
23 +
24 +if ( ! defined( 'ABSPATH' ) ) {
25 + exit;
26 +}
27 +
28 +/**
29 + * Freemius conflict resolution.
30 + *
31 + * If another instance of this plugin (free or pro) has already initialized Freemius,
32 + * just register this file with Freemius and exit. This prevents class redeclaration
33 + * errors when both free and pro versions are active.
34 + */
35 +if ( function_exists( 'ctc_fs' ) ) {
36 + $fs = ctc_fs();
37 + if ( $fs ) {
38 + // Register this file with Freemius.
39 + // Use true for premium, false for free. Freemius handles this via @fs_premium_only.
40 + $fs->set_basename( false, __FILE__ );
41 + }
42 + return;
43 +}
44 +
45 +// Define plugin constants.
46 +define( 'CTC_VER', '5.5.4' );
47 +define( 'CTC_FILE', __FILE__ );
48 +define( 'CTC_BASE', plugin_basename( CTC_FILE ) );
49 +define( 'CTC_DIR', plugin_dir_path( CTC_FILE ) );
50 +define( 'CTC_URI', plugins_url( '/', CTC_FILE ) );
51 +define( 'CTC_GUTENBERG_DIR', CTC_DIR . 'includes/gutenberg/' );
52 +define( 'CTC_GUTENBERG_URI', CTC_URI . 'includes/gutenberg/' );
53 +define( 'CTC_ELEMENTOR_DIR', CTC_DIR . 'includes/elementor/' );
54 +define( 'CTC_ELEMENTOR_URI', CTC_URI . 'includes/elementor/' );
55 +
56 +// Initialize Freemius.
57 +require_once CTC_DIR . 'includes/freemius.php';
58 +
59 +// Include the main plugin class.
60 +require_once CTC_DIR . 'includes/class-core.php';
61 +
62 +// Start the plugin.
63 +ctc();