Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 644209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:21:59+00:00 2026-05-13T21:21:59+00:00

[Update: I’ve found the API reference. The method used is below] <?php wp_delete_post( $postid,

  • 0

[Update: I’ve found the API reference. The method used is below]

<?php wp_delete_post( $postid, $force_delete = false ) ?>

I’ve got a wordpress plugin that creates my default pages for me (about us, contact us, privacy policy, etc) when I first install a new wordpress site. It works really well and gives me a quick boost to rapidly build the site.

However, one problem I have is that I still have to manually remove the default wordpress page (about) and post (“hello world”) as well as enable Akismet.

I’d like to add these functions to my plugin.

My question:

Assuming I’m deleting by ID, can I reasonably depend on the default ids for these pages to remain constant from site to site and host to host? (ie, has anyone found that their are differences in various web host wordpress installers that would create different IDs for these pages)

Otherwise, I suppose I could delete based on the page title matching “About” and “Hello World”. It is a brand new site, after all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:21:59+00:00Added an answer on May 13, 2026 at 9:21 pm

    I guess / assume IDs are the same on new installations by default. (but might be safer to delete based on title).

    You could auto-enable plugins, but sometimes you want to use a different wordpress.com account (API key) to activate your Akismet. Recent Akismet keys can also be obtained by email – so you might perhaps want to change them from time to time or for different projects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: Solved, with code I got it working, see my answer below for the
UPDATE** so i did pretty much everything that was said below and still got
Update : I found almost exact similar question , yet it has slightly different
Update: The index.php file here: /public_html/d/index.php includes: /public_html/d/core/source/class.File1.php This Class.File1.php here has this include
UPDATE: I found that the easiest way is to use AQuery . I need
UPDATE - I'm probably being daft, see my last update below. I just did
UPDATE - A comprehensive comparison, updated as of February 2015, can be found here:
UPDATE: I found this enormously helpful article explaining canvas per-pixel collision detection. I'm working
Update: The solution can be found as a separate answer I am making a
Update: Is there a way to achieve what I'm trying to do in an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.