This is my first question so bare with me.
I have a problem with building a wordpress plugin.
I’m just trying to start but I’m getting an error at a very beginning. I have a problem with register_activation_hook() function, where it produces an error that I can’t fix.
defined(‘ABSPATH’) or die(‘You dont have access to this file!’);
$jobApplications = new JobApplicaions();
register_activation_hook(__FILE__, array($jobApplications, ‘activate’));
register_deactivation_hook(__FILE__, array($jobApplications, ‘deactivate’));
And an error I get:
The plugin generated 237 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
I can’t seem to find a solution?
Read more here:: header already sent, problem with register_activation_hook