Sample Saz – Demo Content Generator

Description

Sample Saz – Demo Content Generator helps theme designers, store builders, and WordPress developers populate a site with realistic demo content in just a few clicks, test layouts thoroughly, and clean up demo data safely when finished.

All bundled assets (images, sample audio, styles, scripts, icons, and Persian RTL variable font) are stored 100% locally inside the plugin directory—no external CDN requests, no remote code loading, and no telemetry.

Key Features

  • 100% Offline Local Assets: Works cleanly in air-gapped local environments and follows WordPress.org asset guidelines.
  • Smart Media Reuse: Files in assets/media/ (post/, product/, music/) are scanned dynamically and uploaded to the Media Library only once per file, then reused in rotation to prevent duplicate thumbnails and save disk space.
  • Structured Demo Posts: Generates 400+ word Lorem Ipsum articles (Persian or English) with <h2>, <h3>, and <h4> headings, featured and inline images, optional [audio] player shortcode, categories, tags, and SEO metadata.
  • WooCommerce Product Generator: Generates both Simple and Variable products with Color and Size attributes, 2–3 variations with distinct pricing, rotating 4+ image galleries, and smart currency-aware pricing (IRR Rial, IRT Toman, or standard decimal currencies) with random sale prices.
  • Comments & Starred Reviews: Generates realistic Persian or English comments on posts and 3–5 star reviews on products while syncing WooCommerce rating caches.
  • SEO Plugin Awareness: Automatically detects Yoast SEO and Rank Math SEO and populates focus keywords and meta descriptions.
  • Preserve Live Content: Adds a sidebar meta box (« Live Content (Exit Demo Mode) ») on posts and products so edited items are protected from cleanup.
  • Safe Batch AJAX Cleanup: Progress bar with live percentage and console log, plus an option to permanently delete demo media files (automatically skipping any media referenced by preserved live content).

Credits & Licenses

  • Bundled Sample Media (assets/media/post/*.webp, assets/media/product/*.webp, assets/media/music/*.mp3): Created specifically for Sample Saz and dedicated to the public domain under CC0 1.0 Universal (CC0 1.0).
  • Vazirmatn Variable Font (assets/fonts/vazirmatn/Vazirmatn-wght.woff2): By Saber Rastikerdar (rastikerdar/vazirmatn, v33.003), licensed under the SIL Open Font License 1.1 (OFL-1.1). See assets/fonts/vazirmatn/OFL.txt.
  • Icons: Uses WordPress core Dashicons and original lightweight inline SVGs.

Captures d’écrans

Installation

  1. Upload the sample-saz folder to the /wp-content/plugins/ directory, or install the ZIP file via Plugins > Add New > Upload Plugin.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Navigate to Sample Saz in the WordPress admin sidebar.
  4. Choose your demo content language, quantity (1–50), and click generate.

FAQ

Does this plugin connect to any external servers or CDNs?

No. All images, audio, JavaScript, CSS, and the Vazirmatn variable font (loaded only in RTL admin screens) are bundled locally within the plugin.

Can I customize the sample images or audio files?

Yes. You can add, replace, or remove image files inside assets/media/post/ and assets/media/product/, or MP3 files inside assets/media/music/. The plugin scans those folders dynamically.

Will cleanup delete my real posts, products, or media?

No. Sample Saz tags every generated item with _samplesaz_is_demo metadata. Cleanup targets only tagged demo items that have not been marked as « Live Content (Exit Demo Mode) ». Even if you choose to delete demo media files, any media still referenced by preserved content is kept safe.

Avis

Il n’y a aucun avis pour cette extension.

Contributeurs/contributrices & développeurs/développeuses

« Sample Saz – Demo Content Generator » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

Journal des modifications

1.0.0

  • Initial release.
  • Added offline smart media manager with dynamic folder scanning and single-upload reuse.
  • Added batch AJAX demo post, WooCommerce product (simple & variable), and comment/review generators.
  • Added live content preservation meta box and safe cleanup engine.
  • Added English source strings with full Persian (fa_IR) translation and RTL Vazirmatn variable font support.