I'm trying to obfuscate the Wordpress plugin that I created using Ioncube since its the requirement of the company.
Things I already tried:
But I'm getting the following errors:
There wasn't any error in the encoding, I'm using the default settings of the most recent version available for evaluation. Any ideas?
To properly encode the Worpdress plugin file, open up the main plugin file. For example the main plugin file is plugger.php
Remove the Wordpress header comment:
/*
Plugin Name: plugger
*/
Encode the files using ioncube.
Copy the encoded files into the Wordpress plugin directory. Then rename the main plugin file, for example plugger-file.php
. Then create a new file, this will be the main plugin file plugger.php
. Inside plugger.php
add the Wordpress header comments so that Wordpress will recognize the plugin then include the plugger-file.php
<?php
/*
Plugin Name: plugger
*/
include_once('plugger.php');