Redirect after plugin activation

Use WP_DEBUG to Get a List of Errors To get a readout of what PHP errors might be causing your site’s problems, you’ll need to turn on the WP_DEBUG tool. To do this, open up your wp-config.php file and add the following line of code (if it is not already present): define( ‘WP_DEBUG’, true ); … Read more

How to run flush_rewrite_rules on activation after i register my custom post type using WordPress Boilerplate Plugin

After a couple of days trying and trying and trying… i asked a youtuber who develops using the same WordPress Plugin Boilerplate and he pointed me to this article: https://andrezrv.com/2014/08/12/efficiently-flush-rewrite-rules-plugin-activation/ It adds an option inside_option table and it will flush rewrite rules based on that 🙂 It worked perfectly

File not found.