DevOps, Docker, mysql, PHP
Setting up MySQL docker container with phpMyAdmin. Spinning MySQL docker container On WIndows10. Just make sure to change “SYMFONY” to your actual Windows username.MySQL database should be saved in “downloads” directory. docker run –name...
MSQL, mysql, SQL, WordPress
To remove all custom post, you can use the fallowing PHP script in your uninstall.php file or function/method defined in your plugin. For example, let’s pretend we are uninstalling a book custom post type plugin: $books = get_posts([‘post_type’ =>...
MSQL, mysql, SQL, WordPress
Tags and Categories are not related to each other. They both tied to posts, so that we need to query for all the posts/products assigned to the top level category. First, We need to recursively query for ID of categories that points to our initial category and every...