From 907130f3df0f2a167d87f8cc6ec66927c6d7fbc1 Mon Sep 17 00:00:00 2001 From: perashanid Date: Thu, 12 Mar 2026 04:01:12 +0600 Subject: [PATCH 01/22] [i18n] Add Bengali translation for guides/providing-content-for-your-demo.md --- .../guides/providing-content-for-your-demo.md | 295 ++++++++++++++++++ 1 file changed, 295 insertions(+) create mode 100644 packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md new file mode 100644 index 00000000000..b69fa1eb997 --- /dev/null +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md @@ -0,0 +1,295 @@ +--- +title: প্লেগ্রাউন্ড দিয়ে আপনার ডেমোর জন্য কন্টেন্ট প্রদান +slug: /guides/providing-content-for-your-demo +description: থিম এবং প্লাগইন প্রদর্শনের জন্য ব্লুপ্রিন্ট, WP-CLI বা PHP ব্যবহার করে আপনার প্লেগ্রাউন্ড ডেমোতে কন্টেন্ট কীভাবে পূরণ করবেন তা শিখুন। +--- + + + +ওয়ার্ডপ্রেস প্লেগ্রাউন্ড দিয়ে একটি ভালো ডেমো প্রদান করার জন্য আপনি যা করতে চাইতে পারেন তার মধ্যে একটি হলো আপনার প্লাগইন বা থিমের ফিচারগুলো আরও ভালোভাবে হাইলাইট করতে ডিফল্ট কন্টেন্ট লোড করা। এই ডিফল্ট কন্টেন্টে ইমেজ বা অন্যান্য অ্যাসেট অন্তর্ভুক্ত থাকতে পারে। + + + +প্লেগ্রাউন্ড ইনস্ট্যান্সে কন্টেন্ট ইমপোর্ট (বা জেনারেট) করার জন্য আপনি ব্যবহার করতে পারেন এমন বেশ কয়েকটি [ব্লুপ্রিন্ট স্টেপ](/blueprints/steps) এবং কৌশল রয়েছে: + + + +## `importWxr` + + + +[`importWxr`](/blueprints/steps#importWxr) স্টেপ দিয়ে, আপনি একটি `.xml` ফাইলের মাধ্যমে আপনার নিজস্ব কন্টেন্ট ইমপোর্ট করতে পারেন যা আগে [একটি বিদ্যমান ওয়ার্ডপ্রেস ইনস্টলেশন থেকে এক্সপোর্ট করা হয়েছে](https://wordpress.org/documentation/article/tools-export-screen/): + +```json +"steps": [ + ..., + { + "step": "importWxr", + "file": { + "resource": "url", + "url": "https://raw.githubusercontent.com/WordPress/blueprints/trunk/blueprints/install-activate-setup-theme-from-gh-repo/blueprint-content.xml" + } + }, + ... +] +``` + +[   Run Blueprint   ](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-activate-setup-theme-from-gh-repo/blueprint.json)   [   See blueprint.json   ](https://github.com/WordPress/blueprints/blob/eb6da7dfa295a095eea2e424c0ae83a219803a8d/blueprints/install-activate-setup-theme-from-gh-repo/blueprint.json#L43) + + + +:::তথ্য +আপনার ইমপোর্ট করা কন্টেন্টে ইমেজ অন্তর্ভুক্ত করতে, একটি ভালো পদ্ধতি হলো ইমেজগুলো আপনার গিটহাব রিপোতে আপলোড করা এবং এক্সপোর্ট করা `.xml` ফাইলে তাদের জন্য পাথ সার্চ/রিপ্লেস করা এই URL ফরম্যাট ব্যবহার করে: `https://raw.githubusercontent.com/{repo}/{branch}/{image_path}`। + +```html + +
+ +
+ +``` + +::: + + + +আপনার এক্সপোর্ট করা `.xml` ফাইল এবং যেকোনো রেফারেন্স করা অ্যাসেট (যেমন ইমেজ) আপনার গিটহাব রিপোজিটরিতে আপনার `blueprint.json`-এর একই ডিরেক্টরিতে আপলোড করার সুপারিশ করা হয়। + + + +## `importWordPressFiles` + + + +[`importWordPressFiles`](/blueprints/steps#importWordPressFiles) স্টেপ দিয়ে, আপনি একটি প্রদত্ত `.zip` ফাইল থেকে আপনার নিজস্ব টপ-লেভেল ওয়ার্ডপ্রেস ফাইলগুলো ইনস্ট্যান্সের রুট ফোল্ডারে ইমপোর্ট করতে পারেন। উদাহরণস্বরূপ, যদি একটি `.zip` ফাইলে `wp-content` এবং `wp-includes` ডিরেক্টরি থাকে, তবে তারা প্লেগ্রাউন্ডের রুট ফোল্ডারে সংশ্লিষ্ট ডিরেক্টরিগুলো রিপ্লেস করবে। + + + +এই `zip` ফাইলটি [প্লেগ্রাউন্ড অপশন মেনুতে](/web-instance#playground-options-menu) "Download as zip" অপশন দিয়ে যেকোনো প্লেগ্রাউন্ড ইনস্ট্যান্স থেকে তৈরি করা যায়। + + + +আপনি একটি প্লেগ্রাউন্ড ইনস্ট্যান্সে আপনার ওয়ার্ডপ্রেস থিম বা প্লাগইনের জন্য একটি ডেমো প্রস্তুত করতে পারেন (ইমেজ এবং অন্যান্য অ্যাসেট সহ) এবং তারপর সেই ডেমোর একটি স্ন্যাপশট একটি `.zip` ফাইলে এক্সপোর্ট করতে পারেন। এই ফাইলটি পরে `importWordPressFiles` স্টেপ ব্যবহার করে ইমপোর্ট করা যায়। + +```json +{ + "landingPage": "/", + "login": true, + "steps": [ + { + "step": "importWordPressFiles", + "wordPressFilesZip": { + "resource": "url", + "url": "https://raw.githubusercontent.com/adamziel/playground-sites/main/playground-for-site-builders/playground.zip" + } + } + ] +} +``` + +[   Run Blueprint   ](https://playground.wordpress.net/builder/builder.html#{%22landingPage%22:%22/%22,%22login%22:true,%22steps%22:[{%22step%22:%22importWordPressFiles%22,%22wordPressFilesZip%22:{%22resource%22:%22url%22,%22url%22:%22https://raw.githubusercontent.com/adamziel/playground-sites/main/playground-for-site-builders/playground.zip%22}}]}) + + + +## `importThemeStarterContent` + + + +[কিছু থিমে স্টার্টার কন্টেন্ট আছে](https://make.wordpress.org/core/2016/11/30/starter-content-for-themes-in-4-7/) যা একটি থিমের ফিচারগুলো হাইলাইট করতে প্রকাশ করা যায়। + + + +[`importThemeStarterContent` স্টেপ](/blueprints/steps#importThemeStarterContent) দিয়ে আপনি যেকোনো থিমের স্টার্টার কন্টেন্ট প্রকাশ করতে পারেন এমনকি যদি সেই থিমটি প্লেগ্রাউন্ড ইনস্ট্যান্সে অ্যাক্টিভেট করা না থাকে। + +```json + +"steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "twentytwenty" + } + }, + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "twentytwentyone" + }, + "options": { + "activate": true + } + }, + { + "step": "importThemeStarterContent", + "themeSlug": "twentytwenty" + } + ] + +``` + +[   Run Blueprint   ](https://playground.wordpress.net/builder/builder.html#{%22steps%22:[{%22step%22:%22installTheme%22,%22themeData%22:{%22resource%22:%22wordpress.org/themes%22,%22slug%22:%22twentytwenty%22}},{%22step%22:%22installTheme%22,%22themeData%22:{%22resource%22:%22wordpress.org/themes%22,%22slug%22:%22twentytwentyone%22},%22options%22:{%22activate%22:true}},{%22step%22:%22importThemeStarterContent%22,%22themeSlug%22:%22twentytwenty%22}]}) + + + +আপনি [`installTheme` স্টেপ](/blueprints/steps#installTheme) দিয়ে একটি থিম ইনস্টল করার সময় এর `importStarterContent` অপশন `true` সেট করে থিমের স্টার্টার কন্টেন্ট প্রকাশ করতে পারেন: + +```json +{ + "steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "twentytwenty" + }, + "options": { + "activate": true, + "importStarterContent": true + } + } + ] +} +``` + +[   Run Blueprint   ](https://playground.wordpress.net/builder/builder.html#{%22steps%22:[{%22step%22:%22installTheme%22,%22themeData%22:{%22resource%22:%22wordpress.org/themes%22,%22slug%22:%22twentytwenty%22},%22options%22:{%22activate%22:true,%22importStarterContent%22:true}}]}) + + + +## `wp-cli` + + + +আপনার থিম বা প্লাগইনের জন্য কন্টেন্ট জেনারেট করার আরেকটি উপায় হলো `wp-cli` স্টেপের মাধ্যমে যা আপনাকে [WP-CLI কমান্ড](https://developer.wordpress.org/cli/commands/) যেমন [`wp post generate`](https://developer.wordpress.org/cli/commands/post/generate/) চালাতে দেয়: + +```json +{ + "landingPage": "/wp-admin/edit.php", + "login": true, + "steps": [ + { + "step": "wp-cli", + "command": "wp post generate --count=20 --post_type=post --post_date=1999-01-04" + } + ] +} +``` + +[   Run Blueprint   ](https://playground.wordpress.net/builder/builder.html#{%22landingPage%22:%22/wp-admin/edit.php%22,%22login%22:true,%22steps%22:[{%22step%22:%22wp-cli%22,%22command%22:%22wp%20post%20generate%20--count=20%20--post_type=post%20--post_date=1999-01-04%22}]}) + + + +আপনি বিদ্যমান কন্টেন্টের উপর ভিত্তি করে পোস্ট তৈরি করতে এবং প্লেগ্রাউন্ড ইনস্ট্যান্সে ইমেজ ইমপোর্ট করতে [`writeFile` স্টেপের](/blueprints/steps#WriteFileStep) সাথে [`wp-cli` স্টেপ](/blueprints/steps#WPCliStep) ব্যবহার করতে পারেন: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "landingPage": "/?p=4", + "login": true, + "steps": [ + { + "step": "writeFile", + "path": "/wordpress/wp-content/postcontent.md", + "data": { + "resource": "url", + "url": "https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/postcontent.md" + } + }, + { + "step": "wp-cli", + "command": "wp post create --post_title='Welcome to Playground' --post_status='published' /wordpress/wp-content/postcontent.md" + }, + { + "step": "writeFile", + "path": "/wordpress/wp-content/Select-storage-method.png", + "data": { + "resource": "url", + "url": "https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/Select-storage-method.png" + } + }, + { + "step": "wp-cli", + "command": "wp media import wordpress/wp-content/Select-storage-method.png --post_id=4 --title='Select your storage method' --featured_image" + } + ] +} +``` + +[   Run Blueprint   ](https://playground.wordpress.net/builder/builder.html#{%22$schema%22:%22https://playground.wordpress.net/blueprint-schema.json%22,%22meta%22:{%22title%22:%22Use%20wp-cli%20to%20add%20a%20post%20with%20image%22,%22description%22:%22Use%20wp-cli%20to%20create%20a%20post%20from%20text%20file%20with%20block%20markup%20and%20a%20featured%20image%22,%22author%22:%22bph%22,%22categories%22:[%22Content%22,%22wpcli%22]},%22landingPage%22:%22/?p=4%22,%22login%22:true,%22steps%22:[{%22step%22:%22writeFile%22,%22path%22:%22/wordpress/wp-content/postcontent.md%22,%22data%22:{%22resource%22:%22url%22,%22url%22:%22https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/postcontent.md%22}},{%22step%22:%22wp-cli%22,%22command%22:%22wp%20post%20create%20--post_title='Welcome%20to%20Playground'%20--post_status='published'%20/wordpress/wp-content/postcontent.md%22},{%22step%22:%22writeFile%22,%22path%22:%22/wordpress/wp-content/Select-storage-method.png%22,%22data%22:{%22resource%22:%22url%22,%22url%22:%22https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/Select-storage-method.png%22}},{%22step%22:%22wp-cli%22,%22command%22:%22wp%20media%20import%20wordpress/wp-content/Select-storage-method.png%20--post_id=4%20--title='Select%20your%20storage%20method'%20--featured_image%22}]}) + + + +:::পরামর্শ + +কন্টেন্ট এবং ফিচার্ড ইমেজের মধ্যে সংযোগ দেখানো সম্পূর্ণ উদাহরণ দেখতে [ব্লুপ্রিন্ট গ্যালারি](https://github.com/WordPress/blueprints/blob/trunk/GALLERY.md) থেকে ["ইমেজ সহ পোস্ট যোগ করতে wp-cli ব্যবহার করুন"](https://github.com/WordPress/blueprints/tree/trunk/blueprints/wpcli-post-with-image) উদাহরণটি দেখুন। + +::: + + + +## `runPHP` + + + +[`runPHP` স্টেপ](/blueprints/steps#runPHP) দিয়ে আপনি আপনার ওয়ার্ডপ্রেস ইনস্টলেশনে তথ্য ইনসার্ট করার জন্য প্রয়োজনীয় যেকোনো PHP কোড চালাতে পারেন, উদাহরণস্বরূপ [`wp_insert_post` ফাংশন](https://developer.wordpress.org/reference/functions/wp_insert_post/) ব্যবহার করে। + +```json +{ + "landingPage": "/wp-admin/edit.php", + "login": true, + "steps": [ + { + "step": "runPHP", + "code": " 'Simple post from PHP', 'post_content' => '

This is a simple post inserted with wp_insert_post

', 'post_author' => 1, 'post_status' => 'publish')); ?>" + } + ] +} +``` + +[   Run Blueprint   ]() From e2412dc074eb672eee628ad750c29416d7b4234e Mon Sep 17 00:00:00 2001 From: perashanid Date: Wed, 18 Mar 2026 11:19:33 +0600 Subject: [PATCH 02/22] Add Bengali translation for blueprints tutorial --- .../current/blueprints/tutorial/index.md | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md new file mode 100644 index 00000000000..f5a0fce80fe --- /dev/null +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md @@ -0,0 +1,38 @@ +--- +title: ব্লুপ্রিন্ট ১০১ +description: "ব্লুপ্রিন্ট ১০১" ক্র্যাশ কোর্সের ল্যান্ডিং পেজ। এই সংক্ষিপ্ত টিউটোরিয়াল শুরু করার জন্য আপনার প্রয়োজনীয় সবকিছু কভার করে। +hide_table_of_contents: false +slug: /blueprints/tutorial +--- + + + +# ব্লুপ্রিন্ট ১০১ - একটি ক্র্যাশ কোর্স + + + +ব্লুপ্রিন্ট ক্র্যাশ কোর্সে স্বাগতম, যেখানে আপনি ব্লুপ্রিন্ট সম্পর্কে জানার জন্য প্রয়োজনীয় সবকিছু পাবেন: সেগুলি কী, কীভাবে সেগুলি তৈরি করবেন এবং কীভাবে সেগুলি কার্যকরভাবে ব্যবহার করবেন। + + + +1. [ব্লুপ্রিন্ট কী এবং আপনি সেগুলি দিয়ে কী করতে পারেন?](/blueprints/tutorial/what-are-blueprints-what-you-can-do-with-them) +2. [কীভাবে ব্লুপ্রিন্ট লোড এবং চালাবেন](/blueprints/tutorial/how-to-load-run-blueprints) +3. [আপনার প্রথম ব্লুপ্রিন্ট তৈরি করুন](/blueprints/tutorial/build-your-first-blueprint) + + + +:::পরামর্শ +এই টিউটোরিয়াল অনুসরণ করার সময় আপনি যদি কোনো সমস্যার সম্মুখীন হন, তাহলে সেগুলি সমাধান করতে সাহায্য করার জন্য পরামর্শ এবং টুলের জন্য [ব্লুপ্রিন্ট ট্রাবলশুট এবং ডিবাগ করা](/blueprints/troubleshoot-and-debug) বিভাগটি দেখুন। +::: From 1a787456908b6a35d63cc1532536c0cd17efff75 Mon Sep 17 00:00:00 2001 From: perashanid Date: Wed, 18 Mar 2026 11:32:59 +0600 Subject: [PATCH 03/22] Add Bengali translation for blueprints tutorial pages --- ...re-blueprints-what-you-can-do-with-them.md | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md new file mode 100644 index 00000000000..a34c880ffec --- /dev/null +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md @@ -0,0 +1,127 @@ +--- +title: ব্লুপ্রিন্ট কী? +slug: /blueprints/tutorial/what-are-blueprints-what-you-can-do-with-them +description: ব্লুপ্রিন্ট কী এবং কীভাবে তারা ওয়ার্ডপ্রেস প্লেগ্রাউন্ড কনফিগার করে তা শিখুন। তাৎক্ষণিক সাইট সেটআপের জন্য JSON ব্যবহারের সুবিধাগুলি আবিষ্কার করুন। +--- + + + +# ব্লুপ্রিন্ট কী এবং আপনি সেগুলি দিয়ে কী করতে পারেন? + + + +ওয়ার্ডপ্রেস প্লেগ্রাউন্ডের সাথে আপনি প্লাগইন, থিম, কন্টেন্ট (পোস্ট, পেজ, ট্যাক্সোনমি এবং কমেন্ট), সেটিংস (সাইট নাম, ইউজার, পার্মালিংক এবং আরও অনেক কিছু) সহ একটি সম্পূর্ণ ওয়েবসাইট তৈরি করতে পারেন। তারা আপনাকে পণ্য সহ একটি সম্পূর্ণ WooCommerce স্টোর, নিবন্ধ দিয়ে পূর্ণ একটি ম্যাগাজিন, একাধিক ইউজার সহ একটি কর্পোরেট ব্লগ এবং আরও অনেক কিছু তৈরি করতে দেয়। + + + +ব্লুপ্রিন্ট হল `JSON` ফাইল যা আপনি প্লেগ্রাউন্ড ইনস্ট্যান্স কনফিগার করতে ব্যবহার করতে পারেন। + + + +ব্লুপ্রিন্ট ফাইল সিস্টেম এবং ডাটাবেস ম্যানিপুলেশনের মতো অ্যাডভান্সড ইউজ কেস সাপোর্ট করে এবং আপনার তৈরি করা ইনস্ট্যান্সের উপর আপনাকে সূক্ষ্ম নিয়ন্ত্রণ দেয়। ওয়ার্ডপ্রেস টেস্ট টিম [৬.৫ বিটা রিলিজ সাইকেলে](https://wordpress.org/news/2024/03/wordpress-6-5-release-candidate-2/) প্লেগ্রাউন্ড ব্যবহার করছে, একটি ব্লুপ্রিন্ট তৈরি করছে যা সর্বশেষ সংস্করণ, বেশ কয়েকটি টেস্টিং প্লাগইন এবং ডামি ডেটা লোড করে। + + + +## একটি সহজ উদাহরণ + + + +একটি ব্লুপ্রিন্ট এরকম দেখতে হতে পারে: + +```json +{ + "plugins": ["akismet", "gutenberg"], + "steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "twentynineteen" + } + } + ], + "siteOptions": { + "blogname": "My Blog", + "blogdescription": "Just another WordPress site" + }, + "constants": { + "WP_DEBUG": true + } +} +``` + + + +উপরের ব্লুপ্রিন্ট _Akismet_ এবং _Gutenberg_ প্লাগইন এবং _Twenty Nineteen_ থিম ইনস্টল করে, সাইটের নাম এবং বিবরণ সেট করে এবং ওয়ার্ডপ্রেস ডিবাগিং মোড চালু করে। + + + +## ব্লুপ্রিন্টের সুবিধা + + + +প্লেগ্রাউন্ডের মাধ্যমে ওয়ার্ডপ্রেস সাইট তৈরির জন্য ব্লুপ্রিন্ট একটি অমূল্য টুল + + + +- **নমনীয়তা**: ডেভেলপাররা বিল্ড প্রসেসে সূক্ষ্ম সমন্বয় করতে পারেন। +- **সামঞ্জস্য**: নিশ্চিত করুন যে প্রতিটি নতুন সাইট একই কনফিগারেশন দিয়ে শুরু হয়। +- **লাইটওয়েট**: ছোট টেক্সট ফাইল যা সংরক্ষণ এবং স্থানান্তর করা সহজ। +- **স্বচ্ছতা**: একটি ব্লুপ্রিন্ট একটি ওয়ার্ডপ্রেস সাইটের স্ন্যাপশট তৈরির জন্য প্রয়োজনীয় সমস্ত কমান্ড অন্তর্ভুক্ত করে। আপনি এটি পড়তে এবং বুঝতে পারেন কীভাবে সাইটটি তৈরি করা হয়েছে। +- **উৎপাদনশীলতা**: ম্যানুয়ালি একটি নতুন ওয়ার্ডপ্রেস সাইট সেটআপ করার সময়সাপেক্ষ প্রক্রিয়া হ্রাস করে। প্রতিটি নতুন প্রজেক্টের জন্য থিম এবং প্লাগইন ইনস্টল এবং কনফিগার করার পরিবর্তে, একটি ব্লুপ্রিন্ট প্রয়োগ করুন এবং একটি প্রসেসে সবকিছু সেট করুন। +- **আপ-টু-ডেট ডিপেন্ডেন্সি**: ওয়ার্ডপ্রেসের সর্বশেষ সংস্করণ, একটি নির্দিষ্ট প্লাগইন বা একটি থিম ফেচ করুন। আপনার স্ন্যাপশট সর্বদা সর্বশেষ ফিচার এবং সিকিউরিটি ফিক্স সহ আপ টু ডেট থাকে। +- **সহযোগিতা**: `JSON` ফাইলগুলি GitHub এর মতো টুলে রিভিউ করা সহজ। আপনার টিম বা ওয়ার্ডপ্রেস কমিউনিটির সাথে ব্লুপ্রিন্ট শেয়ার করুন। অন্যদের আপনার ভালভাবে কনফিগার করা সেটআপ ব্যবহার করার অনুমতি দিন। +- **পরীক্ষা এবং শেখা**: যারা ওয়ার্ডপ্রেসে নতুন বা বিভিন্ন কনফিগারেশন নিয়ে পরীক্ষা করতে চান, তাদের জন্য ব্লুপ্রিন্ট একটি লাইভ সাইট "ভাঙা" ছাড়াই নতুন সেটআপ চেষ্টা করার একটি নিরাপদ এবং সহজ উপায় প্রদান করে। +- **WordPress.org ইন্টিগ্রেশন**: ওয়ার্ডপ্রেস প্লাগইন ডিরেক্টরিতে [আপনার প্লাগইনের একটি ডেমো](https://developer.wordpress.org/plugins/wordpress-org/previews-and-blueprints/) অফার করুন, বা একটি [থিম Trac টিকেটে](https://meta.trac.wordpress.org/ticket/7382) একটি প্রিভিউ। +- **ডেভেলপমেন্ট এনভায়রনমেন্ট স্পিন করা**: টিমের একজন নতুন ডেভেলপার ব্লুপ্রিন্ট ডাউনলোড করতে পারে, একটি হাইপোথেটিক্যাল `wp up` কমান্ড চালাতে পারে এবং একটি নতুন ডেভেলপার এনভায়রনমেন্ট পেতে পারে—তাদের প্রয়োজনীয় সবকিছু লোড করা। সম্পূর্ণ CI/CD প্রসেস একই ব্লুপ্রিন্ট পুনরায় ব্যবহার করতে পারে। + + + +:::তথ্য **আরও রিসোর্স** +ব্লুপ্রিন্টের (অসীম) সম্ভাবনা সম্পর্কে আরও জানতে এই লিংকগুলি ভিজিট করুন: + +- [ওয়ার্ডপ্রেস প্লেগ্রাউন্ডের ভূমিকা](https://developer.wordpress.org/news/2024/04/05/introduction-to-playground-running-wordpress-in-the-browser/) +- [ওয়ার্ডপ্রেস প্লেগ্রাউন্ড ব্লক](https://wordpress.org/plugins/interactive-code-block/) ব্যবহার করে আপনার ওয়েবসাইটে একটি প্রি-কনফিগার করা ওয়ার্ডপ্রেস সাইট এম্বেড করুন। +- [ব্লুপ্রিন্ট উদাহরণ](/blueprints/examples) +- [ব্লুপ্রিন্ট দিয়ে তৈরি ডেমো এবং অ্যাপ](/resources#apps-built-with-wordpress-playground) + +::: From 6b7508f876c03bcff6105579d8f460d21df706ac Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Wed, 18 Mar 2026 11:38:34 +0600 Subject: [PATCH 04/22] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../current/main/guides/providing-content-for-your-demo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md index b69fa1eb997..a4dc35ffe70 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md @@ -292,4 +292,4 @@ With the [`runPHP` step](/blueprints/steps#runPHP) you can run any PHP code you } ``` -[   Run Blueprint   ]() +[   Run Blueprint   ](https://playground.wordpress.net/builder/builder.html#{%22landingPage%22:%22/wp-admin/edit.php%22,%22login%22:true,%22steps%22:[{%22step%22:%22runPHP%22,%22code%22:%22%3C?php%20require_once%20'/wordpress/wp-load.php';%20wp_insert_post(array('post_title'%20=%3E%20'Simple%20post%20from%20wp_insert_post',%20'post_content'%20%20=%3E%20'%3C!--%20wp:paragraph%20--%3E%3Cp%3EThis%20is%20a%20simple%20post%20inserted%20with%20wp_insert_post%3C/p%3E%3C!--%20/wp:paragraph%20--%3E',%20'post_author'%20%20%20=%3E%201,%20'post_status'%20=%3E%20'publish'));%20?%3E%22}]}) From d812f980aebb86e72aa6462967506658532d8046 Mon Sep 17 00:00:00 2001 From: perashanid Date: Wed, 18 Mar 2026 12:11:48 +0600 Subject: [PATCH 05/22] Fix admonition syntax in Bengali translations --- .../01-what-are-blueprints-what-you-can-do-with-them.md | 2 +- .../current/blueprints/tutorial/index.md | 2 +- .../current/main/guides/providing-content-for-your-demo.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md index a34c880ffec..40f782f91ce 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md @@ -116,7 +116,7 @@ Visit these links to learn more about the (endless) possibilities of Blueprints: ::: --> -:::তথ্য **আরও রিসোর্স** +:::info **আরও রিসোর্স** ব্লুপ্রিন্টের (অসীম) সম্ভাবনা সম্পর্কে আরও জানতে এই লিংকগুলি ভিজিট করুন: - [ওয়ার্ডপ্রেস প্লেগ্রাউন্ডের ভূমিকা](https://developer.wordpress.org/news/2024/04/05/introduction-to-playground-running-wordpress-in-the-browser/) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md index f5a0fce80fe..29ad4970a30 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md @@ -33,6 +33,6 @@ If you encounter any issues while following this tutorial, refer to the [Trouble ::: --> -:::পরামর্শ +:::tip এই টিউটোরিয়াল অনুসরণ করার সময় আপনি যদি কোনো সমস্যার সম্মুখীন হন, তাহলে সেগুলি সমাধান করতে সাহায্য করার জন্য পরামর্শ এবং টুলের জন্য [ব্লুপ্রিন্ট ট্রাবলশুট এবং ডিবাগ করা](/blueprints/troubleshoot-and-debug) বিভাগটি দেখুন। ::: diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md index b69fa1eb997..c12743b6d98 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md @@ -49,7 +49,7 @@ With the [`importWxr`](/blueprints/steps#importWxr) step, you can import your ow To include images in your imported content, a good approach is to upload the images to your GitHub repo and search/replace the path for them in the exported `.xml` file using the URL format: `https://raw.githubusercontent.com/{repo}/{branch}/{image_path}`. --> -:::তথ্য +:::info আপনার ইমপোর্ট করা কন্টেন্টে ইমেজ অন্তর্ভুক্ত করতে, একটি ভালো পদ্ধতি হলো ইমেজগুলো আপনার গিটহাব রিপোতে আপলোড করা এবং এক্সপোর্ট করা `.xml` ফাইলে তাদের জন্য পাথ সার্চ/রিপ্লেস করা এই URL ফরম্যাট ব্যবহার করে: `https://raw.githubusercontent.com/{repo}/{branch}/{image_path}`। ```html @@ -261,7 +261,7 @@ Check the ["Use wp-cli to add a post with image"](https://github.com/WordPress/b ::: --> -:::পরামর্শ +:::tip কন্টেন্ট এবং ফিচার্ড ইমেজের মধ্যে সংযোগ দেখানো সম্পূর্ণ উদাহরণ দেখতে [ব্লুপ্রিন্ট গ্যালারি](https://github.com/WordPress/blueprints/blob/trunk/GALLERY.md) থেকে ["ইমেজ সহ পোস্ট যোগ করতে wp-cli ব্যবহার করুন"](https://github.com/WordPress/blueprints/tree/trunk/blueprints/wpcli-post-with-image) উদাহরণটি দেখুন। From 401dd74adb7c3fe9417f3b45a262cdda1ee285d8 Mon Sep 17 00:00:00 2001 From: perashanid Date: Wed, 18 Mar 2026 12:21:48 +0600 Subject: [PATCH 06/22] Quote Bengali text in YAML front matter --- .../01-what-are-blueprints-what-you-can-do-with-them.md | 4 ++-- .../current/blueprints/tutorial/index.md | 4 ++-- .../current/main/guides/providing-content-for-your-demo.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md index 40f782f91ce..59131795029 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md @@ -1,7 +1,7 @@ --- -title: ব্লুপ্রিন্ট কী? +title: 'ব্লুপ্রিন্ট কী?' slug: /blueprints/tutorial/what-are-blueprints-what-you-can-do-with-them -description: ব্লুপ্রিন্ট কী এবং কীভাবে তারা ওয়ার্ডপ্রেস প্লেগ্রাউন্ড কনফিগার করে তা শিখুন। তাৎক্ষণিক সাইট সেটআপের জন্য JSON ব্যবহারের সুবিধাগুলি আবিষ্কার করুন। +description: 'ব্লুপ্রিন্ট কী এবং কীভাবে তারা ওয়ার্ডপ্রেস প্লেগ্রাউন্ড কনফিগার করে তা শিখুন। তাৎক্ষণিক সাইট সেটআপের জন্য JSON ব্যবহারের সুবিধাগুলি আবিষ্কার করুন।' --- -:::tip +:::পরামর্শ এই টিউটোরিয়াল অনুসরণ করার সময় আপনি যদি কোনো সমস্যার সম্মুখীন হন, তাহলে সেগুলি সমাধান করতে সাহায্য করার জন্য পরামর্শ এবং টুলের জন্য [ব্লুপ্রিন্ট ট্রাবলশুট এবং ডিবাগ করা](/blueprints/troubleshoot-and-debug) বিভাগটি দেখুন। ::: From c4d7663ed6c71838c1473a1567dd2e9d48a70b57 Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 27 Mar 2026 13:36:48 +0600 Subject: [PATCH 09/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md Co-authored-by: Noruzzaman --- .../01-what-are-blueprints-what-you-can-do-with-them.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md index 59131795029..01e9aef2f48 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md @@ -121,7 +121,7 @@ Visit these links to learn more about the (endless) possibilities of Blueprints: - [ওয়ার্ডপ্রেস প্লেগ্রাউন্ডের ভূমিকা](https://developer.wordpress.org/news/2024/04/05/introduction-to-playground-running-wordpress-in-the-browser/) - [ওয়ার্ডপ্রেস প্লেগ্রাউন্ড ব্লক](https://wordpress.org/plugins/interactive-code-block/) ব্যবহার করে আপনার ওয়েবসাইটে একটি প্রি-কনফিগার করা ওয়ার্ডপ্রেস সাইট এম্বেড করুন। -- [ব্লুপ্রিন্ট উদাহরণ](/blueprints/examples) +- [ব্লুপ্রিন্টের উদাহরণ](/blueprints/examples) - [ব্লুপ্রিন্ট দিয়ে তৈরি ডেমো এবং অ্যাপ](/resources#apps-built-with-wordpress-playground) ::: From 00212926085c7315b44b6ca89ec5385eb63caf87 Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 27 Mar 2026 13:37:19 +0600 Subject: [PATCH 10/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md Co-authored-by: Noruzzaman --- .../current/blueprints/tutorial/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md index 4cdc36eefbc..756e75e64ce 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md @@ -1,6 +1,6 @@ --- title: 'ব্লুপ্রিন্ট ১০১' -description: 'ব্লুপ্রিন্ট ১০১ ক্র্যাশ কোর্সের ল্যান্ডিং পেজ। এই সংক্ষিপ্ত টিউটোরিয়াল শুরু করার জন্য আপনার প্রয়োজনীয় সবকিছু কভার করে।' +description: 'ব্লুপ্রিন্ট ১০১ ক্র্যাশ কোর্সের ল্যান্ডিং পেজ। এই সংক্ষিপ্ত টিউটোরিয়ালে শুরু করার জন্য আপনার প্রয়োজনীয় সবকিছু আলোচনা করা হয়েছে।' hide_table_of_contents: false slug: /blueprints/tutorial --- From c5e6c3e234bf101c2359eb735764b26fcb18d7cf Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 27 Mar 2026 13:37:38 +0600 Subject: [PATCH 11/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md Co-authored-by: Noruzzaman --- .../01-what-are-blueprints-what-you-can-do-with-them.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md index 01e9aef2f48..e5a66e88fdf 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md @@ -116,7 +116,7 @@ Visit these links to learn more about the (endless) possibilities of Blueprints: ::: --> -:::info **আরও রিসোর্স** +:::তথ্য **আরও রিসোর্স** ব্লুপ্রিন্টের (অসীম) সম্ভাবনা সম্পর্কে আরও জানতে এই লিংকগুলি ভিজিট করুন: - [ওয়ার্ডপ্রেস প্লেগ্রাউন্ডের ভূমিকা](https://developer.wordpress.org/news/2024/04/05/introduction-to-playground-running-wordpress-in-the-browser/) From 11e4cdefc2cd8f1c02d7fe2ab2e7e5ff99c2b1be Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 27 Mar 2026 13:38:52 +0600 Subject: [PATCH 12/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md Co-authored-by: Noruzzaman --- .../current/main/guides/providing-content-for-your-demo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md index a716f72257f..98aad60d815 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md @@ -261,7 +261,7 @@ Check the ["Use wp-cli to add a post with image"](https://github.com/WordPress/b ::: --> -:::tip +::: পরামর্শ কন্টেন্ট এবং ফিচার্ড ইমেজের মধ্যে সংযোগ দেখানো সম্পূর্ণ উদাহরণ দেখতে [ব্লুপ্রিন্ট গ্যালারি](https://github.com/WordPress/blueprints/blob/trunk/GALLERY.md) থেকে ["ইমেজ সহ পোস্ট যোগ করতে wp-cli ব্যবহার করুন"](https://github.com/WordPress/blueprints/tree/trunk/blueprints/wpcli-post-with-image) উদাহরণটি দেখুন। From 4e10c98a3298923631dacbf69cc904803213413f Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 27 Mar 2026 13:39:09 +0600 Subject: [PATCH 13/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md Co-authored-by: Noruzzaman --- .../current/main/guides/providing-content-for-your-demo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md index 98aad60d815..f71f870b5d1 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md @@ -49,7 +49,7 @@ With the [`importWxr`](/blueprints/steps#importWxr) step, you can import your ow To include images in your imported content, a good approach is to upload the images to your GitHub repo and search/replace the path for them in the exported `.xml` file using the URL format: `https://raw.githubusercontent.com/{repo}/{branch}/{image_path}`. --> -:::info +::: তথ্য আপনার ইমপোর্ট করা কন্টেন্টে ইমেজ অন্তর্ভুক্ত করতে, একটি ভালো পদ্ধতি হলো ইমেজগুলো আপনার গিটহাব রিপোতে আপলোড করা এবং এক্সপোর্ট করা `.xml` ফাইলে তাদের জন্য পাথ সার্চ/রিপ্লেস করা এই URL ফরম্যাট ব্যবহার করে: `https://raw.githubusercontent.com/{repo}/{branch}/{image_path}`। ```html From 759bda2f8f4e70ba27f004e6e908474fe68758b7 Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 27 Mar 2026 13:39:50 +0600 Subject: [PATCH 14/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md Co-authored-by: Noruzzaman From 5b94564a402ee27f983550ee828eef2b6b6b0ad8 Mon Sep 17 00:00:00 2001 From: perashanid Date: Fri, 3 Apr 2026 12:04:31 +0600 Subject: [PATCH 15/22] [i18n] Add Bengali translation for blueprints tutorial pages --- .../tutorial/02-how-to-load-run-blueprints.md | 47 ++ .../tutorial/03-build-your-first-blueprint.md | 417 ++++++++++++++++++ 2 files changed, 464 insertions(+) create mode 100644 packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md create mode 100644 packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md new file mode 100644 index 00000000000..566b14afc53 --- /dev/null +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md @@ -0,0 +1,47 @@ +--- +title: কীভাবে ব্লুপ্রিন্ট চালাবেন +slug: /blueprints/tutorial/how-to-load-run-blueprints +description: URL ফ্র্যাগমেন্ট বা blueprint-url প্যারামিটার ব্যবহার সহ ব্লুপ্রিন্ট লোড এবং চালানোর বিভিন্ন পদ্ধতি শিখুন। +--- + +# কীভাবে ব্লুপ্রিন্ট লোড এবং চালাবেন + +## URL ফ্র্যাগমেন্ট + +ব্লুপ্রিন্ট চালানোর দ্রুততম উপায় হল এটি একটি WordPress Playground ওয়েবসাইটের URL "ফ্র্যাগমেন্ট"-এ পেস্ট করা। শুধু `.net/` এর পরে একটি `#` যোগ করুন। + +ধরা যাক আপনি নিম্নলিখিত ব্লুপ্রিন্ট ব্যবহার করে WordPress এবং PHP এর নির্দিষ্ট সংস্করণ সহ একটি Playground তৈরি করতে চান: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "preferredVersions": { + "php": "8.3", + "wp": "5.9" + } +} +``` + +এটি চালাতে, `https://playground.wordpress.net/#{"preferredVersions": {"php":"8.3", "wp":"5.9"}}` এ যান। আপনি নিচের বাটনটিও ব্যবহার করতে পারেন: + +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#{"preferredVersions":{"php":"8.3","wp":"5.9"}}) + +পরবর্তী অধ্যায়ে উদাহরণ কোড চালাতে এই পদ্ধতি ব্যবহার করুন, [**আপনার প্রথম ব্লুপ্রিন্ট তৈরি করুন**](/blueprints/tutorial/build-your-first-blueprint)। + +### Base64 এনকোডেড ব্লুপ্রিন্ট + +কিছু টুল, যেমন GitHub, URL-এ পেস্ট করার সময় ব্লুপ্রিন্টটি সঠিকভাবে ফরম্যাট নাও করতে পারে। এই ক্ষেত্রে, [আপনার ব্লুপ্রিন্টটি Base64-এ এনকোড করুন](https://www.base64encode.org) এবং এটি URL-এ যুক্ত করুন। উদাহরণস্বরূপ, এটি উপরের ব্লুপ্রিন্টের Base64 ফরম্যাট: `eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiNy40IiwgIndwIjoiNS45In19`। + +এটি চালাতে, [https://playground.wordpress.net/#eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiNy40IiwgIndwIjoiNS45In19](https://playground.wordpress.net/#eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiNy40IiwgIndwIjoiNS45In19) এ যান + +### URL থেকে ব্লুপ্রিন্ট লোড করুন + +যখন আপনার ব্লুপ্রিন্ট খুব বড় হয়ে যায়, তখন আপনি এটি URL-এ `?blueprint-url` কোয়েরি প্যারামিটারের মাধ্যমে লোড করতে পারেন, এভাবে: + +[https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json) + +মনে রাখবেন যে ব্লুপ্রিন্টটি অবশ্যই সর্বজনীনভাবে অ্যাক্সেসযোগ্য হতে হবে এবং [সঠিক `Access-Control-Allow-Origin` হেডার](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin) সহ পরিবেশন করতে হবে: + +``` +Access-Control-Allow-Origin: * +``` diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md new file mode 100644 index 00000000000..9a2cd43404b --- /dev/null +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md @@ -0,0 +1,417 @@ +--- +title: আপনার প্রথম ব্লুপ্রিন্ট তৈরি করুন +slug: /blueprints/tutorial/build-your-first-blueprint +description: আপনার প্রথম ব্লুপ্রিন্ট তৈরি করার জন্য ধাপে ধাপে টিউটোরিয়াল। থিম, প্লাগইন ইনস্টল এবং সাইট কন্টেন্ট ইম্পোর্ট করতে শিখুন। +--- + +আসুন একটি প্রাথমিক ব্লুপ্রিন্ট তৈরি করি যা + +1. একটি নতুন WordPress সাইট তৈরি করে +2. সাইটের শিরোনাম "My first Blueprint" সেট করে +3. _Adventurer_ থিম ইনস্টল করে +4. WordPress প্লাগইন ডিরেক্টরি থেকে _Hello Dolly_ প্লাগইন ইনস্টল করে +5. একটি কাস্টম প্লাগইন ইনস্টল করে +6. সাইটের কন্টেন্ট পরিবর্তন করে + +## 1. একটি নতুন WordPress সাইট তৈরি করুন + +আসুন নিম্নলিখিত কন্টেন্ট সহ একটি `blueprint.json` ফাইল তৈরি করে শুরু করি: + +```json +{} +``` + +মনে হতে পারে কিছুই ঘটছে না, কিন্তু এই ব্লুপ্রিন্ট ইতিমধ্যে সর্বশেষ মেজর সংস্করণ সহ একটি WordPress সাইট তৈরি করে। + +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#{}) + +:::tip **অটোকমপ্লিট** + +আপনি যদি VS Code বা PHPStorm এর মতো একটি IDE ব্যবহার করেন, তাহলে আপনি অটোকমপ্লিট ব্লুপ্রিন্ট ডেভেলপমেন্ট অভিজ্ঞতার জন্য [Blueprint JSON Schema](https://playground.wordpress.net/blueprint-schema.json) ব্যবহার করতে পারেন। আপনার `blueprint.json` ফাইলের শীর্ষে নিম্নলিখিত লাইন যোগ করুন: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json" +} +``` + +::: +VS Code-এ এটি দেখতে এরকম: + +![Autocompletion visualized](@site/static/img/blueprints/schema-autocompletion.webp) + +## 2. সাইটের শিরোনাম "My first Blueprint" সেট করুন + +ব্লুপ্রিন্টগুলি একটি সিরিজ [স্টেপ](/blueprints/steps) নিয়ে গঠিত যা একটি WordPress সাইট কীভাবে তৈরি করতে হয় তা সংজ্ঞায়িত করে। প্রথম স্টেপ লেখার আগে, স্টেপগুলির একটি খালি তালিকা ঘোষণা করুন: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "steps": [] +} +``` + +এই ব্লুপ্রিন্টটি খুব উত্তেজনাপূর্ণ নয়—এটি উপরের খালি ব্লুপ্রিন্টের মতো একই ডিফল্ট সাইট তৈরি করে। আসুন এটি সম্পর্কে কিছু করি! + +WordPress সাইটের শিরোনাম `blogname` অপশনে সংরক্ষণ করে। আপনার প্রথম স্টেপ যোগ করুন এবং সেই অপশনটি "My first Blueprint" এ সেট করুন: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "steps": [ + { + "step": "setSiteOptions", + "options": { + "blogname": "My first Blueprint" + } + } + ] +} +``` + +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#https://playground.wordpress.net/#eyIkc2NoZW1hIjoiaHR0cHM6Ly9wbGF5Z3JvdW5kLndvcmRwcmVzcy5uZXQvYmx1ZXByaW50LXNjaGVtYS5qc29uIiwic3RlcHMiOlt7InN0ZXAiOiJzZXRTaXRlT3B0aW9ucyIsIm9wdGlvbnMiOnsiYmxvZ25hbWUiOiJNeSBmaXJzdCBCbHVlcHJpbnQifX1dfQ==) + +[`setSiteOptions` স্টেপ](/blueprints/steps#SetSiteOptionsStep) WordPress ডাটাবেসে সাইট অপশনগুলি নির্দিষ্ট করে। `options` অবজেক্টে সেট করার জন্য কী-ভ্যালু পেয়ার রয়েছে। এই ক্ষেত্রে, আপনি `blogname` কী-এর মান "My first Blueprint" এ পরিবর্তন করেছেন। আপনি [Blueprint Steps API Reference](/blueprints/steps) এ সমস্ত উপলব্ধ স্টেপ সম্পর্কে আরও পড়তে পারেন। + +### শর্টহ্যান্ড + +আপনি শর্টহ্যান্ড সিনট্যাক্স ব্যবহার করে কিছু স্টেপ নির্দিষ্ট করতে পারেন। উদাহরণস্বরূপ, আপনি `setSiteOptions` স্টেপটি এভাবে লিখতে পারেন: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "siteOptions": { + "blogname": "My first Blueprint" + } +} +``` + +শর্টহ্যান্ড সিনট্যাক্স এবং স্টেপ সিনট্যাক্স একে অপরের সাথে সম্পর্কিত। শর্টহ্যান্ড সিনট্যাক্স দিয়ে নির্দিষ্ট করা প্রতিটি স্টেপ স্বয়ংক্রিয়ভাবে `steps` অ্যারের শুরুতে একটি নির্বিচার ক্রমে যোগ করা হয়। আপনার কোনটি বেছে নেওয়া উচিত? সংক্ষিপ্ততা আপনার প্রধান উদ্বেগ হলে শর্টহ্যান্ড ব্যবহার করুন, এক্সিকিউশনের ক্রমের উপর আরও নিয়ন্ত্রণ প্রয়োজন হলে স্টেপ ব্যবহার করুন। + +## 3. _Adventurer_ থিম ইনস্টল করুন + +Adventurer হল একটি ওপেন-সোর্স থিম [WordPress থিম ডিরেক্টরিতে উপলব্ধ](https://wordpress.org/themes/adventurer/)। আসুন [`installTheme` স্টেপ](/blueprints/steps#InstallThemeStep) ব্যবহার করে এটি ইনস্টল করি: + +```json +{ + "siteOptions": { + "blogname": "My first Blueprint" + }, + "steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "adventurer" + } + } + ] +} +``` + +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#eyIkc2NoZW1hIjoiaHR0cHM6Ly9wbGF5Z3JvdW5kLndvcmRwcmVzcy5uZXQvYmx1ZXByaW50LXNjaGVtYS5qc29uIiwib3B0aW9ucyI6eyJibG9nbmFtZSI6Ik15IGZpcnN0IEJsdWVwcmludCJ9LCJzdGVwcyI6W3sic3RlcCI6Imluc3RhbGxUaGVtZSIsInRoZW1lWmlwRmlsZSI6eyJyZXNvdXJjZSI6IndvcmRwcmVzcy5vcmcvdGhlbWVzIiwic2x1ZyI6ImFkdmVudHVyZXIifX1dfQ==) + +সাইটটি এখন নিচের স্ক্রিনশটের মতো দেখতে হবে: + +![Site with the adventurer theme](@site/static/img/blueprints/installed-adventurer-theme.webp) + +### রিসোর্স + +`themeData` একটি [রিসোর্স](/blueprints/steps/resources) সংজ্ঞায়িত করে এবং স্টেপটি সম্পূর্ণ করার জন্য প্রয়োজনীয় একটি বাহ্যিক ফাইল রেফারেন্স করে। Playground বিভিন্ন ধরনের রিসোর্স সমর্থন করে, যার মধ্যে রয়েছে + +- `url`, +- `wordpress.org/themes`, +- `wordpress.org/plugins`, +- `vfs` (ভার্চুয়াল ফাইল সিস্টেম), অথবা +- `literal`। + +উদাহরণটি `wordpress.org/themes` রিসোর্স ব্যবহার করে, যার জন্য WordPress থিম ডিরেক্টরিতে ব্যবহৃত একটি `slug` প্রয়োজন: + +এই ক্ষেত্রে, `https://wordpress.org/themes//` হয়ে যায় `https://wordpress.org/themes/adventurer/`। + +:::note +সমর্থিত রিসোর্স সম্পর্কে আরও জানুন [Blueprint Resources API Reference](/blueprints/steps/resources/) এ। +::: + +## 4. _Hello Dolly_ প্লাগইন ইনস্টল করুন + +একটি ক্লাসিক WordPress প্লাগইন যা অ্যাডমিন ড্যাশবোর্ডে "Hello, Dolly!" গানের র্যান্ডম লিরিক্স প্রদর্শন করে। আসুন [`installPlugin` স্টেপ](/blueprints/steps#InstallPluginStep) ব্যবহার করে এটি ইনস্টল করি: + +```json +{ + "siteOptions": { + "blogname": "My first Blueprint" + }, + "steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "adventurer" + } + }, + { + "step": "installPlugin", + "pluginData": { + "resource": "wordpress.org/plugins", + "slug": "hello-dolly" + } + } + ] +} +``` + +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#eyJzaXRlT3B0aW9ucyI6eyJibG9nbmFtZSI6Ik15IGZpcnN0IEJsdWVwcmludCJ9LCJzdGVwcyI6W3sic3RlcCI6Imluc3RhbGxUaGVtZSIsInRoZW1lWmlwRmlsZSI6eyJyZXNvdXJjZSI6IndvcmRwcmVzcy5vcmcvdGhlbWVzIiwic2x1ZyI6ImFkdmVudHVyZXIifX0seyJzdGVwIjoiaW5zdGFsbFBsdWdpbiIsInBsdWdpblppcEZpbGUiOnsicmVzb3VyY2UiOiJ3b3JkcHJlc3Mub3JnL3BsdWdpbnMiLCJzbHVnIjoiaGVsbG8tZG9sbHkifX1dfQ==) + +Hello Dolly প্লাগইনটি এখন ইনস্টল এবং সক্রিয় করা হয়েছে। + +`themeData` এর মতো, `pluginData` স্টেপের জন্য প্রয়োজনীয় একটি বাহ্যিক ফাইলের রেফারেন্স সংজ্ঞায়িত করে। উদাহরণটি WordPress প্লাগইন ডিরেক্টরি থেকে মিলে যাওয়া `slug` সহ প্লাগইন ইনস্টল করতে `wordpress.org/plugins` রিসোর্স ব্যবহার করে। + +## 5. একটি কাস্টম প্লাগইন ইনস্টল করুন + +আসুন একটি কাস্টম WordPress প্লাগইন ইনস্টল করি যা অ্যাডমিন ড্যাশবোর্ডে একটি বার্তা যোগ করে: + +```php +Hello from My Custom Plugin!'; +} + +add_action('admin_notices', 'my_custom_plugin'); +``` + +আপনি [installPlugin](/blueprints/steps#InstallPluginStep) ব্যবহার করতে পারেন, কিন্তু এর জন্য একটি ZIP ফাইল তৈরি করতে হবে। প্লাগইনটি কাজ করে কিনা তা দেখতে আসুন ভিন্ন কিছু দিয়ে শুরু করি: + +1. [`mkdir` স্টেপ](/blueprints/steps#MkdirStep) ব্যবহার করে একটি `wp-content/plugins/hello-from-the-dashboard` ডিরেক্টরি তৈরি করুন। +2. [`writeFile` স্টেপ](/blueprints/steps#WriteFileStep) ব্যবহার করে একটি `plugin.php` ফাইল লিখুন। +3. [`activatePlugin` স্টেপ](/blueprints/steps#ActivatePluginStep) ব্যবহার করে প্লাগইনটি সক্রিয় করুন। + +একটি ব্লুপ্রিন্টে এটি দেখতে এরকম: + +```json +{ + // ... + "steps": [ + // ... + { + "step": "mkdir", + "path": "/wordpress/wp-content/plugins/hello-from-the-dashboard" + }, + { + "step": "writeFile", + "path": "/wordpress/wp-content/plugins/hello-from-the-dashboard/plugin.php", + "data": "Hello from My Custom Plugin!';\n}\n\nadd_action('admin_notices', 'my_custom_plugin');" + }, + { + "step": "activatePlugin", + "pluginPath": "hello-from-the-dashboard/plugin.php" + } + ] +} +``` + +শেষ কাজটি হল ব্যবহারকারীকে অ্যাডমিন হিসাবে লগইন করা। আপনি [`login` স্টেপ](/blueprints/steps#LoginStep) এর একটি শর্টহ্যান্ড দিয়ে এটি করতে পারেন: + +```json +{ + "login": true, + "steps": { + // ... + } +} +``` + +এখানে সম্পূর্ণ ব্লুপ্রিন্ট: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "login": true, + "siteOptions": { + "blogname": "My first Blueprint" + }, + "steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "adventurer" + } + }, + { + "step": "installPlugin", + "pluginData": { + "resource": "wordpress.org/plugins", + "slug": "hello-dolly" + } + }, + { + "step": "mkdir", + "path": "/wordpress/wp-content/plugins/hello-from-the-dashboard" + }, + { + "step": "writeFile", + "path": "/wordpress/wp-content/plugins/hello-from-the-dashboard/plugin.php", + "data": "Hello from My Custom Plugin!';\n}\n\nadd_action('admin_notices', 'my_custom_plugin');" + }, + { + "step": "activatePlugin", + "pluginPath": "hello-from-the-dashboard/plugin.php" + } + ] +} +``` + +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#eyJsb2dpbiI6dHJ1ZSwic2l0ZU9wdGlvbnMiOnsiYmxvZ25hbWUiOiJNeSBmaXJzdCBCbHVlcHJpbnQifSwic3RlcHMiOlt7InN0ZXAiOiJpbnN0YWxsVGhlbWUiLCJ0aGVtZVppcEZpbGUiOnsicmVzb3VyY2UiOiJ3b3JkcHJlc3Mub3JnL3RoZW1lcyIsInNsdWciOiJhZHZlbnR1cmVyIn19LHsic3RlcCI6Imluc3RhbGxQbHVnaW4iLCJwbHVnaW5aaXBGaWxlIjp7InJlc291cmNlIjoid29yZHByZXNzLm9yZy9wbHVnaW5zIiwic2x1ZyI6ImhlbGxvLWRvbGx5In19LHsic3RlcCI6Im1rZGlyIiwicGF0aCI6Ii93b3JkcHJlc3Mvd3AtY29udGVudC9wbHVnaW5zL2hlbGxvLW9uLXRoZS1kYXNoYm9hcmQifSx7InN0ZXAiOiJ3cml0ZUZpbGUiLCJwYXRoIjoiL3dvcmRwcmVzcy93cC1jb250ZW50L3BsdWdpbnMvaGVsbG8tb24tdGhlLWRhc2hib2FyZC9wbHVnaW4ucGhwIiwiZGF0YSI6Ijw/cGhwXG4vKlxuUGx1Z2luIE5hbWU6IFwiSGVsbG9cIiBvbiB0aGUgRGFzaGJvYXJkXG5EZXNjcmlwdGlvbjogQSBjdXN0b20gcGx1Z2luIHRvIHNob3djYXNlIFdvcmRQcmVzcyBCbHVlcHJpbnRzXG5WZXJzaW9uOiAxLjBcbkF1dGhvcjogV29yZFByZXNzIENvbnRyaWJ1dG9yc1xuKi9cblxuZnVuY3Rpb24gbXlfY3VzdG9tX3BsdWdpbigpIHtcbiAgICBlY2hvICc8aDE+SGVsbG8gZnJvbSBNeSBDdXN0b20gUGx1Z2luITwvaDE+Jztcbn1cblxuYWRkX2FjdGlvbignYWRtaW5fbm90aWNlcycsICdteV9jdXN0b21fcGx1Z2luJyk7In0seyJzdGVwIjoiYWN0aXZhdGVQbHVnaW4iLCJwbHVnaW5QYXRoIjoiaGVsbG8tb24tdGhlLWRhc2hib2FyZC9wbHVnaW4ucGhwIn1dfQ==) + +আপনি যখন ড্যাশবোর্ডে নেভিগেট করবেন তখন এটি দেখতে এরকম: + +![Site with the custom plugin](@site/static/img/blueprints/installed-custom-plugin.webp) + +### একটি প্লাগইন তৈরি করুন এবং এটি জিপ করুন + +PHP ফাইলগুলিকে `JSON` হিসাবে এনকোড করা দ্রুত পরীক্ষার জন্য উপযোগী হতে পারে, কিন্তু এটি অসুবিধাজনক এবং পড়তে কঠিন। পরিবর্তে, প্লাগইন কোড সহ একটি ফাইল তৈরি করুন, এটি কম্প্রেস করুন, এবং এটি ইনস্টল করতে [`installPlugin` স্টেপ](/blueprints/steps#InstallPluginStep) এ `resource` হিসাবে `ZIP` ফাইল ব্যবহার করুন (URL-এর পাথটি আপনার GitHub রিপোজিটরিতে থাকা পাথের সাথে মিলতে হবে): + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "login": true, + "siteOptions": { + "blogname": "My first Blueprint" + }, + "steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "adventurer" + } + }, + { + "step": "installPlugin", + "pluginData": { + "resource": "wordpress.org/plugins", + "slug": "hello-dolly" + } + }, + { + "step": "installPlugin", + "pluginData": { + "resource": "url", + "url": "https://raw.githubusercontent.com/wordpress/blueprints/trunk/docs/assets/hello-from-the-dashboard.zip" + } + } + ] +} +``` + +আপনি শর্টহ্যান্ড সিনট্যাক্স ব্যবহার করে সেই ব্লুপ্রিন্টটি আরও ছোট করতে পারেন: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "login": true, + "siteOptions": { + "blogname": "My first Blueprint" + }, + "plugins": ["hello-dolly", "https://raw.githubusercontent.com/wordpress/blueprints/trunk/docs/assets/hello-from-the-dashboard.zip"], + "steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "adventurer" + } + } + ] +} +``` + +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#eyIkc2NoZW1hIjoiaHR0cHM6Ly9wbGF5Z3JvdW5kLndvcmRwcmVzcy5uZXQvYmx1ZXByaW50LXNjaGVtYS5qc29uIiwibG9naW4iOnRydWUsInNpdGVPcHRpb25zIjp7ImJsb2duYW1lIjoiTXkgZmlyc3QgQmx1ZXByaW50In0sInBsdWdpbnMiOlsiaGVsbG8tZG9sbHkiLCJodHRwczovL3Jhdy5naXRodWJ1c2VyY29udGVudC5jb20vYWRhbXppZWwvYmx1ZXByaW50cy90cnVuay9kb2NzL2hlbGxvLW9uLXRoZS1kYXNoYm9hcmQuemlwIl0sInN0ZXBzIjpbeyJzdGVwIjoiaW5zdGFsbFRoZW1lIiwidGhlbWVaaXBGaWxlIjp7InJlc291cmNlIjoid29yZHByZXNzLm9yZy90aGVtZXMiLCJzbHVnIjoiYWR2ZW50dXJlciJ9fV19) + +## 6. সাইটের কন্টেন্ট পরিবর্তন করুন + +অবশেষে, আসুন সাইটের ডিফল্ট কন্টেন্ট মুছে ফেলি এবং একটি WordPress এক্সপোর্ট ফাইল (WXR) থেকে নতুন কন্টেন্ট ইম্পোর্ট করি। + +### পুরানো কন্টেন্ট মুছে ফেলুন + +ডিফল্ট কন্টেন্ট মুছে ফেলার জন্য কোনো ব্লুপ্রিন্ট স্টেপ নেই, কিন্তু আপনি PHP কোডের একটি স্নিপেট দিয়ে এটি করতে পারেন: + +```php + -1, + 'post_type' => array('post', 'page'), + 'post_status' => 'any' +)); + +foreach ($posts as $post) { + wp_delete_post($post->ID, true); +} +``` + +সাইট সেটআপের সময় সেই কোডটি চালাতে, [`runPHP` স্টেপ](/blueprints/steps#RunPHPStep) ব্যবহার করুন: + +```json +{ + // ... + "steps": [ + // ... + { + "step": "runPHP", + "code": " -1,\n 'post_type' => array('post', 'page'),\n 'post_status' => 'any'\n));\n\nforeach ($posts as $post) {\n wp_delete_post($post->ID, true);\n}" + } + ] +} +``` + +### নতুন কন্টেন্ট ইম্পোর্ট করুন + +আসুন একটি WordPress এক্সপোর্ট (`WXR`) ফাইল ইম্পোর্ট করতে [`importWxr` স্টেপ](/blueprints/steps#ImportWXRStep) ব্যবহার করি যা WordPress থিম পরীক্ষা করতে সাহায্য করে। ফাইলটি [WordPress/theme-test-data](https://github.com/WordPress/theme-test-data) রিপোজিটরিতে উপলব্ধ, এবং আপনি এটির `raw.githubusercontent.com` ঠিকানার মাধ্যমে অ্যাক্সেস করতে পারেন: [https://raw.githubusercontent.com/WordPress/theme-test-data/master/themeunittestdata.wordpress.xml](https://raw.githubusercontent.com/WordPress/theme-test-data/master/themeunittestdata.wordpress.xml)। + +এখানে চূড়ান্ত ব্লুপ্রিন্টটি দেখতে এরকম: + +```json +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "login": true, + "siteOptions": { + "blogname": "My first Blueprint" + }, + "plugins": ["hello-dolly", "https://raw.githubusercontent.com/wordpress/blueprints/trunk/docs/assets/hello-from-the-dashboard.zip"], + "steps": [ + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "adventurer" + } + }, + { + "step": "runPHP", + "code": " -1,\n 'post_type' => array('post', 'page'),\n 'post_status' => 'any'\n));\n\nforeach ($posts as $post) {\n wp_delete_post($post->ID, true);\n}" + }, + { + "step": "importWxr", + "file": { + "resource": "url", + "url": "https://raw.githubusercontent.com/WordPress/theme-test-data/master/themeunittestdata.wordpress.xml" + } + } + ] +} +``` + +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#eyIkc2NoZW1hIjoiaHR0cHM6Ly9wbGF5Z3JvdW5kLndvcmRwcmVzcy5uZXQvYmx1ZXByaW50LXNjaGVtYS5qc29uIiwibG9naW4iOnRydWUsInNpdGVPcHRpb25zIjp7ImJsb2duYW1lIjoiTXkgZmlyc3QgQmx1ZXByaW50In0sInBsdWdpbnMiOlsiaGVsbG8tZG9sbHkiLCJodHRwczovL3Jhdy5naXRodWJ1c2VyY29udGVudC5jb20vYWRhbXppZWwvYmx1ZXByaW50cy90cnVuay9kb2NzL2Fzc2V0cy9oZWxsby1mcm9tLXRoZS1kYXNoYm9hcmQuemlwIl0sInN0ZXBzIjpbeyJzdGVwIjoiaW5zdGFsbFRoZW1lIiwidGhlbWVaaXBGaWxlIjp7InJlc291cmNlIjoid29yZHByZXNzLm9yZy90aGVtZXMiLCJzbHVnIjoiYWR2ZW50dXJlciJ9fSx7InN0ZXAiOiJydW5QSFAiLCJjb2RlIjoiPD9waHBcbnJlcXVpcmUgJy93b3JkcHJlc3Mvd3AtbG9hZC5waHAnO1xuXG4kcG9zdHMgPSBnZXRfcG9zdHMoYXJyYXkoXG4gICAgJ251bWJlcnBvc3RzJyA9PiAtMSxcbiAgICAncG9zdF90eXBlJyA9PiBhcnJheSgncG9zdCcsICdwYWdlJyksXG4gICAgJ3Bvc3Rfc3RhdHVzJyA9PiAnYW55J1xuKSk7XG5cbmZvcmVhY2ggKCRwb3N0cyBhcyAkcG9zdCkge1xuICAgIHdwX2RlbGV0ZV9wb3N0KCRwb3N0LT5JRCwgdHJ1ZSk7XG59In0seyJzdGVwIjoiaW1wb3J0V3hyIiwiZmlsZSI6eyJyZXNvdXJjZSI6InVybCIsInVybCI6Imh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9Xb3JkUHJlc3MvdGhlbWUtdGVzdC1kYXRhL21hc3Rlci90aGVtZXVuaXR0ZXN0ZGF0YS53b3JkcHJlc3MueG1sIn19XX0=) + +এবং এটাই। আপনার প্রথম ব্লুপ্রিন্ট তৈরি করার জন্য অভিনন্দন! 🥳 From 16b2c1f7b0efcf1e2e8c15ecb968703460c3189a Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 3 Apr 2026 12:33:54 +0600 Subject: [PATCH 16/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../blueprints/tutorial/02-how-to-load-run-blueprints.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md index 566b14afc53..e6b42b75fbd 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/02-how-to-load-run-blueprints.md @@ -30,9 +30,9 @@ description: URL ফ্র্যাগমেন্ট বা blueprint-url প ### Base64 এনকোডেড ব্লুপ্রিন্ট -কিছু টুল, যেমন GitHub, URL-এ পেস্ট করার সময় ব্লুপ্রিন্টটি সঠিকভাবে ফরম্যাট নাও করতে পারে। এই ক্ষেত্রে, [আপনার ব্লুপ্রিন্টটি Base64-এ এনকোড করুন](https://www.base64encode.org) এবং এটি URL-এ যুক্ত করুন। উদাহরণস্বরূপ, এটি উপরের ব্লুপ্রিন্টের Base64 ফরম্যাট: `eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiNy40IiwgIndwIjoiNS45In19`। +কিছু টুল, যেমন GitHub, URL-এ পেস্ট করার সময় ব্লুপ্রিন্টটি সঠিকভাবে ফরম্যাট নাও করতে পারে। এই ক্ষেত্রে, [আপনার ব্লুপ্রিন্টটি Base64-এ এনকোড করুন](https://www.base64encode.org) এবং এটি URL-এ যুক্ত করুন। উদাহরণস্বরূপ, এটি উপরের ব্লুপ্রিন্টের Base64 ফরম্যাট: `eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiOC4zIiwgIndwIjoiNS45In19`। -এটি চালাতে, [https://playground.wordpress.net/#eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiNy40IiwgIndwIjoiNS45In19](https://playground.wordpress.net/#eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiNy40IiwgIndwIjoiNS45In19) এ যান +এটি চালাতে, [https://playground.wordpress.net/#eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiOC4zIiwgIndwIjoiNS45In19](https://playground.wordpress.net/#eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiOC4zIiwgIndwIjoiNS45In19) এ যান ### URL থেকে ব্লুপ্রিন্ট লোড করুন From 281d435f876bd25656205e803c8c079e31d0b911 Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 3 Apr 2026 12:34:18 +0600 Subject: [PATCH 17/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../current/main/guides/providing-content-for-your-demo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md index f71f870b5d1..98aad60d815 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md @@ -49,7 +49,7 @@ With the [`importWxr`](/blueprints/steps#importWxr) step, you can import your ow To include images in your imported content, a good approach is to upload the images to your GitHub repo and search/replace the path for them in the exported `.xml` file using the URL format: `https://raw.githubusercontent.com/{repo}/{branch}/{image_path}`. --> -::: তথ্য +:::info আপনার ইমপোর্ট করা কন্টেন্টে ইমেজ অন্তর্ভুক্ত করতে, একটি ভালো পদ্ধতি হলো ইমেজগুলো আপনার গিটহাব রিপোতে আপলোড করা এবং এক্সপোর্ট করা `.xml` ফাইলে তাদের জন্য পাথ সার্চ/রিপ্লেস করা এই URL ফরম্যাট ব্যবহার করে: `https://raw.githubusercontent.com/{repo}/{branch}/{image_path}`। ```html From 0f817df1eccb44560f0683d561d06eecbccdc0f7 Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 3 Apr 2026 12:34:33 +0600 Subject: [PATCH 18/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../current/main/guides/providing-content-for-your-demo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md index 98aad60d815..a716f72257f 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/guides/providing-content-for-your-demo.md @@ -261,7 +261,7 @@ Check the ["Use wp-cli to add a post with image"](https://github.com/WordPress/b ::: --> -::: পরামর্শ +:::tip কন্টেন্ট এবং ফিচার্ড ইমেজের মধ্যে সংযোগ দেখানো সম্পূর্ণ উদাহরণ দেখতে [ব্লুপ্রিন্ট গ্যালারি](https://github.com/WordPress/blueprints/blob/trunk/GALLERY.md) থেকে ["ইমেজ সহ পোস্ট যোগ করতে wp-cli ব্যবহার করুন"](https://github.com/WordPress/blueprints/tree/trunk/blueprints/wpcli-post-with-image) উদাহরণটি দেখুন। From 7be0ed97f5bbe1c6f7ff0f66bce85f19860ad797 Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 3 Apr 2026 12:34:46 +0600 Subject: [PATCH 19/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../01-what-are-blueprints-what-you-can-do-with-them.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md index e5a66e88fdf..01e9aef2f48 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/01-what-are-blueprints-what-you-can-do-with-them.md @@ -116,7 +116,7 @@ Visit these links to learn more about the (endless) possibilities of Blueprints: ::: --> -:::তথ্য **আরও রিসোর্স** +:::info **আরও রিসোর্স** ব্লুপ্রিন্টের (অসীম) সম্ভাবনা সম্পর্কে আরও জানতে এই লিংকগুলি ভিজিট করুন: - [ওয়ার্ডপ্রেস প্লেগ্রাউন্ডের ভূমিকা](https://developer.wordpress.org/news/2024/04/05/introduction-to-playground-running-wordpress-in-the-browser/) From b60c15b11c6586c8b7f9bb125e2d93fb025fcb70 Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 3 Apr 2026 12:35:10 +0600 Subject: [PATCH 20/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../blueprints/tutorial/03-build-your-first-blueprint.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md index 9a2cd43404b..7f2a2a35c91 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md @@ -69,7 +69,7 @@ WordPress সাইটের শিরোনাম `blogname` অপশনে } ``` -[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#https://playground.wordpress.net/#eyIkc2NoZW1hIjoiaHR0cHM6Ly9wbGF5Z3JvdW5kLndvcmRwcmVzcy5uZXQvYmx1ZXByaW50LXNjaGVtYS5qc29uIiwic3RlcHMiOlt7InN0ZXAiOiJzZXRTaXRlT3B0aW9ucyIsIm9wdGlvbnMiOnsiYmxvZ25hbWUiOiJNeSBmaXJzdCBCbHVlcHJpbnQifX1dfQ==) +[   ব্লুপ্রিন্ট চালান   ](https://playground.wordpress.net/#eyIkc2NoZW1hIjoiaHR0cHM6Ly9wbGF5Z3JvdW5kLndvcmRwcmVzcy5uZXQvYmx1ZXByaW50LXNjaGVtYS5qc29uIiwic3RlcHMiOlt7InN0ZXAiOiJzZXRTaXRlT3B0aW9ucyIsIm9wdGlvbnMiOnsiYmxvZ25hbWUiOiJNeSBmaXJzdCBCbHVlcHJpbnQifX1dfQ==) [`setSiteOptions` স্টেপ](/blueprints/steps#SetSiteOptionsStep) WordPress ডাটাবেসে সাইট অপশনগুলি নির্দিষ্ট করে। `options` অবজেক্টে সেট করার জন্য কী-ভ্যালু পেয়ার রয়েছে। এই ক্ষেত্রে, আপনি `blogname` কী-এর মান "My first Blueprint" এ পরিবর্তন করেছেন। আপনি [Blueprint Steps API Reference](/blueprints/steps) এ সমস্ত উপলব্ধ স্টেপ সম্পর্কে আরও পড়তে পারেন। From 3acc1813654b01aa180ea94398bf88debefdd6dc Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 3 Apr 2026 12:37:05 +0600 Subject: [PATCH 21/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../blueprints/tutorial/03-build-your-first-blueprint.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md index 7f2a2a35c91..a8c129addf6 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/03-build-your-first-blueprint.md @@ -222,9 +222,9 @@ add_action('admin_notices', 'my_custom_plugin'); ```json { "login": true, - "steps": { + "steps": [ // ... - } + ] } ``` From 09a2fda600a10f2f3867e11d7a2f2b44cbe01550 Mon Sep 17 00:00:00 2001 From: Shanid Sajjatuz Islam Date: Fri, 3 Apr 2026 12:38:33 +0600 Subject: [PATCH 22/22] Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../current/blueprints/tutorial/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md index 756e75e64ce..d41c670366e 100644 --- a/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md +++ b/packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/tutorial/index.md @@ -33,6 +33,6 @@ If you encounter any issues while following this tutorial, refer to the [Trouble ::: --> -:::পরামর্শ +:::tip এই টিউটোরিয়াল অনুসরণ করার সময় আপনি যদি কোনো সমস্যার সম্মুখীন হন, তাহলে সেগুলি সমাধান করতে সাহায্য করার জন্য পরামর্শ এবং টুলের জন্য [ব্লুপ্রিন্ট ট্রাবলশুট এবং ডিবাগ করা](/blueprints/troubleshoot-and-debug) বিভাগটি দেখুন। :::