Never change content without the user’s specific manual request, and never ever delete anything from the DB that you haven’t created.
So the only question left is how to create you sample content. The cleanest way is to provide an exported sample that can be imported into WP. The only problem with this approach is that it requires the installation of the wordpress importer plugin. The other possible approach is to write a code that will generate the sample content, but this also needs to be triggered by a manual action by the user.
If your user is not very bright (as most users are 😉 ) you can show a short message about the existence of the option to import/generate a sample after theme’s activation.
Related Posts:
- How important is it to enqueue a theme’s stylesheet?
- How do I remove a pre-existing customizer setting?
- wp_redirect() – headers already sent
- Can a theme be built in React?
- Why I can’t add a CSS style in this WordPress theme?
- Use __($str) and _e($str) to translate strings with HTML
- Posts in multiple Categories different single.php
- Single Page WordPress Theme – Using page templates
- Confused about image sizing business in WordPress
- Creating the modern ‘single page’ html5 css3 layout in wordpress
- How can I stop WP media uploader from creating duplicates of my uploaded images?
- esc_url not working within add_settings_field callback
- How to override BuddyPress 3.0 bp-nouveau theme files?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- How can a Theme Contain no Header File or Footer File?
- WordPress theme (or plugin) that uses Contenteditable property
- Same footer on all multisites blogs
- Adding “latest from the blog” to the homepage
- Default comments file and how to copy it
- Changing order title and featured image in blog post (Astra theme)
- New template, where to place CSS?
- Is there a theme function for is_password_protected()?
- Some translations do not work in my template class
- WordPress not registering Theme Customization Section
- How to get comment meta values by post ID
- Why is the Links Manager visible?
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- Check if home.php and set home.php as page_on_front
- Redirect to specified page when insufficient permissions?
- Reasons why all thumbnail sizes aren’t working
- Jetpack Comments with fall-back
- Update a custom theme with Subversion?
- Should I use add_filter for functions in function.php of the theme?
- Multiple TinyMCE Editors in one Admin Page
- Showing a list of posts when homepage is custom
- How to override checkbox styles if these inputs have a unique id [closed]
- What are the minimum role/permissions for freelance developer?
- Multisite theme path rewrite using .htaccess
- Retrieve localised value
- How to disable wordpress from overload my stylesheet styles with customizer styles
- AJAXIFY WordPress Theme Frontend menu
- How can my theme allow users to take advantage of advanced html tags in posts
- Pull request in WordPress repository?
- How to Call pages from a Options Panel
- How can I conditionally show different home page templates based on whether or not the user is logged in?
- how to get the post attachement image in full size?
- Gallery thumbnails very small
- Is there a list of all display functions for templates? [closed]
- different way to achive stylesheet_url
- Using a starter theme vs starter theme with child theme
- How should I use starter content utility to show some default menus?
- Set a featured image as a replacement to the header image
- How to remove ID’s from wp_enqueue_style?
- How to include Google fonts [duplicate]
- Theme Customizer not displaying saved values in wp_head (CSS)
- How To Detect Posted Comment in Theme Development?
- Create a category archive page in TwentyTen Child Theme
- How to call the_time current?
- Thesis -style Navigation
- where is real values of variables?
- White screen when attaching css to function.php
- Different text on different sites in a multisite setup
- How to remove WP Title Tag?
- Change the sidebar from left to right twentyfourteen theme
- Custom theme won’t use search.php
- Get attachment meta (I need attachment ID, unsure how to find it)
- Retrieve WordPress’ the_content() with jQuery
- How to create a WP theme that use BootStrap? [closed]
- Alternatives to handle customizer settings
- Theme Checker Text Domain
- Minimal WordPress Functionality on Existing Website
- W3 total cach and theme changes [closed]
- loading javascript after jquery is loaded
- Change default rel attributes for Image Block & Button Block
- How to copy page/post from one theme to another?
- Not sure how to debug this npm install error. This is a wordpress theme that comes with a built-in gulp/webpack task automation [closed]
- Add class every 4 post like , class_1, class_2, class_3, class_4 and class_1, class_2, class_3, class_4
- Using has_term() function for category-subcategory structure
- Find the source file causing a Mixed Content warning
- Ajax Comment Upvotes – Votes don’t always register
- Are paginated comments required for publishing Themes?
- Correct was to customise theme using get_theme_mod in scripts
- Best way to allow for extended use of WordPress functions inside single.php
- Data not saved WordPress Custom Admin Page
- RSS feed url showing page not found. How to solve it?
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- Retina ready for uploaded images which are cropped
- Pagination issue with Single.php
- Search Results not displaying for multiple word search
- Allow users to edit home page from WordPress (home.php problems)
- php file child theme directory not overriding parent theme php file [duplicate]
- How do I change the tagline input to textarea?
- Display Page featured Image as well as Posts featured Image
- Creating completely new WordPress site from old WP contents
- Should I create a child theme for a parent custom theme? [closed]
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- How can I use pre declared blocks in a php file?
- jQuery Snippet Not Working on WordPress Site [closed]
- WordPress Two Level Filters on Getting Custom Taxonomy Terms