email-encoder-bundle
Last commit date
assets
2 months ago
config
3 months ago
core
2 months ago
languages
8 months ago
src
2 months ago
templates
2 months ago
vendor
2 months ago
composer.json
5 months ago
composer.lock
5 months ago
email-encoder-bundle.php
2 months ago
index.php
6 years ago
license.txt
6 years ago
readme.txt
2 months ago
email-encoder-bundle.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Email Encoder - Protect Email Addresses |
| 4 | * Version: 2.4.6 |
| 5 | * Requires PHP: 7.4 |
| 6 | * Plugin URI: https://wpemailencoder.com/ |
| 7 | * Description: Protect email addresses on your site and hide them from spambots. Easy to use & flexible. |
| 8 | * Author: Online Optimisation |
| 9 | * Author URI: https://wpemailencoder.com/ |
| 10 | * License: GPLv2 or later |
| 11 | * License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 12 | * Text Domain: email-encoder-bundle |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this plugin. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | // Exit if accessed directly. |
| 19 | defined( 'ABSPATH' ) || exit; |
| 20 | |
| 21 | define( 'EEB_NAME', 'Email Encoder' ); |
| 22 | define( 'EEB_VERSION', '2.4.6' ); |
| 23 | define( 'EEB_SETUP', true ); |
| 24 | define( 'EEB_PLUGIN_FILE', __FILE__ ); |
| 25 | define( 'EEB_PLUGIN_BASE', plugin_basename( EEB_PLUGIN_FILE ) ); |
| 26 | define( 'EEB_PLUGIN_DIR', plugin_dir_path( EEB_PLUGIN_FILE ) ); |
| 27 | define( 'EEB_PLUGIN_URL', plugin_dir_url( EEB_PLUGIN_FILE ) ); |
| 28 | define( 'EEB_TEXTDOMAIN', 'email-encoder-bundle' ); |
| 29 | |
| 30 | // add_action( 'eeb_ready', fn () => error_log( '--> HELLO! <--' ), 9999 ); |
| 31 | |
| 32 | # Load the main instance for our core functions |
| 33 | require_once EEB_PLUGIN_DIR . 'core/class-email-encoder-bundle.php'; |
| 34 | require_once EEB_PLUGIN_DIR . 'core/includes/functions/template-tags.php'; |
| 35 | |
| 36 | # COMPOSER AUTOLOAD |
| 37 | if (file_exists(__DIR__ . '/vendor/autoload.php')) { |
| 38 | require __DIR__ . '/vendor/autoload.php'; |
| 39 | } |
| 40 | |
| 41 | # RUN IT |
| 42 | add_action( 'plugins_loaded', 'EEB' ); |
| 43 | |
| 44 | |
| 45 | /** |
| 46 | * The main function to load the only instance |
| 47 | * of our master class. |
| 48 | * |
| 49 | * @return Email_Encoder |
| 50 | */ |
| 51 | function EEB(): \Legacy\EmailEncoderBundle\Email_Encoder |
| 52 | { |
| 53 | return \Legacy\EmailEncoderBundle\Email_Encoder::instance(); |
| 54 | } |
| 55 |