Default WP Plugin

Meet the Client:

So, that’s me – your average WordPress enthusiast. I love starting new projects, but setting up WordPress every time was getting on my nerves. Tired of the same old routine, I decided to create a WordPress plugin to shake things up.

The Hassle:

Picture this: you install WordPress, and then it’s the same old song and dance.

  1. Tweak settings like the Date Format, Homepage Display, and Permalink Structure
  2. Say bye-bye to that annoying ‘Hello World’ post.
  3. Trash the default plugins – ‘Akismet’ and ‘Hello Dolly.’
  4. Install and activate the ‘Elementor Website Builder’ plugin.
  5. Set up the ‘Hello Elementor’ theme, kick it into gear, and ditch the other themes gathering dust.

Doing this manually every time? No thanks. It was time for a change.

Enter the Solution:

So, I put on my coding hat and crafted a WordPress plugin. One click, and bam – everything’s set up, just the way I like it.

Cool Features of the Plugin:
  1. Automated Settings Configuration:
    • Date Format changed to d/m/Y.
    • Homepage Display set to a static page (‘Sample Page’).
    • Permalink Structure set to ‘Post name.’
  2. Default Content Removal:
    • ‘Hello World’ post automatically deleted.
  3. Default Plugin Removal:
    • ‘Akismet’ and ‘Hello Dolly’ plugins removed.
  4. Plugin Installation:
    • ‘Elementor Website Builder’ plugin automatically installed and activated.
  5. Theme Installation and Activation:
    • ‘Hello Elementor’ theme installed and activated.
    • Other deactivated themes removed.
In a Nutshell:

My custom WordPress plugin is the game-changer I needed. Setting up a new WordPress site is now a breeze – all thanks to a single click. This project shows that even us regular folks can bend WordPress to our will and make it work just the way we want it to. Cheers to hassle-free WordPress setups!

The code for this plugin can be accessed on my GitHub page here https://github.com/MeyAdam/change-default-wp-setup

A screenshot of my Github repo

Notes:

The plugin will execute all logic once the “Activate” link is clicked. However, this approach may not be optimal.
To enhance the plugin, I’ve established the following milestones:

  1. Add a “Settings” link below the plugin name in the plugin list.
  2. Introduce an “Change Default WP Setup” admin menu on the WordPress dashboard.
  3. Upon clicking “Activate,” users will be redirected to the plugin settings page.
  4. The settings page will provide information about the actions the plugin will perform.
  5. Users will need to check the “Agree” checkbox and then click “Save Changes.”
  6. Then, users are given the option to deactivate the plugin.

After completing these steps, the plugin will execute all logic.