output the debug lines to the end of the page

Use the shutdown hook. It runs very late– “just before PHP shuts down execution” per comments in the source. Proof of concept: add_action( ‘shutdown’, function() { echo ‘This runs very late in the page load’; } );

Woocommerce product info in a sidebar?

Checkout the content-single-product.php WooCommerce template for an idea of what functions are hooked where. It is very well commented. When you learn about hooks and filters, all these questions start to become similar. You’ll want to remove the function from it’s current hook and add it to a new hook. This sample includes a fake … Read more

WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]

There are multiple ways to fix this. You can either remove the if-condition containing SHOW TABLES LIKE (remove lines: 117, 135 and 137, 157). That should work as the dbDelta function checks itself if the tables are already presend. Or you could just add some single quotes to the table names in the lines 117 … Read more

Personalized Author Area

Always the same with those clients … ๐Ÿ™‚ Unfortunately your requirements sound pretty custom. Only advise I can give you is to use one of the custom field plugins like Advanced Custom Fields or Types. Those can speed up the development of custom pages like you have by a factor of 10, as you don’t … Read more

Create “new pages” within the admin section of plugin

The easiest way is to add another $_GET parameter to the URL. In the moment you are viewing admin.php?page=Customer_Search. You could make your links go like admin.php?page=Customer_Search&type=your-page. In your plugins files you can then output the desired content based on that parameter. if($_GET[‘type’] == ‘your-page’) { //output your page … }elseif( ….other pages …