Fatal error when activating my custom wordpress plugin

What I conclude form your comments is pethouseuk-functionality.php include ‘AlterTableComments.php’; use PethouseukFunctionality\AlterTable; $a=”PethouseukFunctionality\AlterTable\test”; $a(); // function call $b = ‘PethouseukFunctionality\AlterTable\AlterTableComments’; $c = new $b; // new object $c->yourfunction(‘test’); // Method call Another file AlterTableComments.php <?php namespace PethouseukFunctionality\AlterTable; interface AlterTableInterface{ function yourfunction($param); } class AlterTableComments implements AlterTableInterface{ function yourfunction($param){ var_dump($param); } } function test(){ echo ‘this … Read more

Plugin setting page – update_option problem

Your chunk of code if (isset($_POST[‘submit’])) { would process all the form submissions (even other forms which is not your settings page) which is why you are lossing your data. Even though this is not good way to create option page. But If you do something like if(is_admin() && isset($_POST[‘submit’]) && isset($_POST[‘ffita_gads_capub’])){…. could solve your … Read more