# copy-the-code/2.0.0/classes/class-copy-the-code.php

Copy Anything to Clipboard for WordPress – Copy Button, Copy Text &amp; Copy Code, version 2.0.0. 56 lines.

- Page: https://pluginprobe.com/plugins/copy-the-code/2.0.0/code/classes/class-copy-the-code.php
- Raw: https://pluginprobe.com/plugins/copy-the-code/2.0.0/raw/classes/class-copy-the-code.php
- Modified: 2020-06-27T15:07:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/copy-the-code/2.0.0/code/classes/class-copy-the-code.php#L10-L20`.

```php
<?php
/**
 * Initialize Plugin
 *
 * @package Copy the Code
 * @since 1.0.0
 */

if ( ! class_exists( 'Copy_The_Code' ) ) :

	/**
	 * Copy the Code
	 *
	 * @since 1.0.0
	 */
	class Copy_The_Code {

		/**
		 * Instance
		 *
		 * @access private
		 * @var object Class Instance.
		 * @since 1.0.0
		 */
		private static $instance;

		/**
		 * Initiator
		 *
		 * @since 1.0.0
		 * @return object initialized object of class.
		 */
		public static function get_instance() {
			if ( ! isset( self::$instance ) ) {
				self::$instance = new self;
			}
			return self::$instance;
		}

		/**
		 * Constructor
		 */
		public function __construct() {
			require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code-update.php';
			require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code-page.php';
		}

	}

	/**
	 * Kicking this off by calling 'get_instance()' method
	 */
	Copy_The_Code::get_instance();

endif;

```
