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 …

Making the ‘add to cart’ button redirect to PayPal

A solution can be found in the function woocommerce_add_to_cart_action. We have to chain two filters. In the first, we check for the product ID, if it’s one of a list we add the redirect. add_action( ‘woocommerce_add_to_cart_validation’, ‘check_ids_wpse_119466’, 10, 3 ); function check_ids_wpse_119466( $true, $product_id, $quantity ) { # Not our products, bail out # Adjust … Read more