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');