Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sweep to remove several WordPress Defaults #29

Open
bhubbard opened this issue Jan 14, 2016 · 4 comments
Open

Add sweep to remove several WordPress Defaults #29

bhubbard opened this issue Jan 14, 2016 · 4 comments

Comments

@bhubbard
Copy link
Contributor

Many sites leave the wordpress defaults, it might be good to add a sweep to check for them and remove them if they exist:

  • Hello World Post
  • Sample Page
  • Default Mr. WordPress Comment
  • Default Tagline
@lesterchan
Copy link
Owner

Unlikely I will add this in because I know some user keeps it. If there are more request for it, then I can consider.

@bhubbard
Copy link
Contributor Author

If it helps, I work for a company and manage 200+ wordpress installs for clients. Most users only keep it because it is just there by default. For the majority of sites, they really should be deleting any default content.

@szepeviktor
Copy link
Collaborator

szepeviktor commented Sep 1, 2016

@bhubbard AFAIK This should be done by WP-CLI

wp post delete $(wp post list --name="$(wp eval 'echo sanitize_title( _x( "hello-world", "Default post slug" ) );')" --posts_per_page=1 --format=ids)
wp post delete $(wp post list --post_type=page --name="$(wp eval 'echo __( "sample-page" );')" --posts_per_page=1 --format=ids)
wp comment delete 1
wp option update blogdescription ""
wp plugin uninstall akismet
wp plugin uninstall hello-dolly
wp theme delete twentyfifteen
wp theme delete twentyfourteen

Right after installation.

@fearlex
Copy link

fearlex commented Nov 16, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants