{"id":10947,"date":"2023-12-29T04:56:09","date_gmt":"2023-12-29T01:26:09","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/"},"modified":"2023-12-29T04:56:09","modified_gmt":"2023-12-29T01:26:09","slug":"%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/","title":{"rendered":"\u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 wp_insert_post \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0631\u0627\u06cc \u062f\u0631\u062c \u067e\u0633\u062a \u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/#%da%86%d8%b1%d8%a7_%d8%a7%d8%b2_%d8%aa%d8%a7%d8%a8%d8%b9_wp_insert_post_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%da%a9%d9%86%db%8c%d9%85%d8%9f\" >\u0686\u0631\u0627 \u0627\u0632 \u062a\u0627\u0628\u0639 wp_insert_post \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645\u061f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/#%d9%be%d8%a7%d8%b1%d8%a7%d9%85%d8%aa%d8%b1%d9%87%d8%a7%db%8c_wp_insert_post\" >\u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc wp_insert_post<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/#%d8%b1%d9%88%d8%b4_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d8%aa%d8%a7%d8%a8%d8%b9_wp_insert_post_%d8%af%d8%b1_%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3\" >\u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 wp_insert_post \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/#%d8%b1%d9%88%d8%b4_%d8%af%d8%b1%d8%ac_%d9%be%d8%b3%d8%aa_%d9%88_%d8%a8%d8%b1%d8%b1%d8%b3%db%8c_%d8%ae%d8%b7%d8%a7%d9%87%d8%a7\" >\u0631\u0648\u0634 \u062f\u0631\u062c \u067e\u0633\u062a \u0648 \u0628\u0631\u0631\u0633\u06cc \u062e\u0637\u0627\u0647\u0627<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/#%d8%b1%d9%88%d8%b4_%d8%af%d8%b1%d8%ac_%db%8c%da%a9_%d9%be%d8%b3%d8%aa_%d8%ac%d8%af%db%8c%d8%af_%d8%af%d8%b1_%d9%be%d8%a7%db%8c%da%af%d8%a7%d9%87_%d8%af%d8%a7%d8%af%d9%87_%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3\" >\u0631\u0648\u0634 \u062f\u0631\u062c \u06cc\u06a9 \u067e\u0633\u062a \u062c\u062f\u06cc\u062f \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648\u0631\u062f\u067e\u0631\u0633<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/#%d8%b1%d9%88%d8%b4_%d8%af%d8%b1%d8%ac_%db%8c%da%a9_%d9%be%d8%b3%d8%aa_%d8%a8%d8%a7_%d8%b7%d8%a8%d9%82%d9%87_%d8%a8%d9%86%d8%af%db%8c_%d8%b3%d9%81%d8%a7%d8%b1%d8%b4%db%8c_%d9%88_%d8%af%d8%a7%d8%af%d9%87_%d9%87%d8%a7%db%8c_%d9%85%d8%aa%d8%a7\" >\u0631\u0648\u0634 \u062f\u0631\u062c \u06cc\u06a9 \u067e\u0633\u062a \u0628\u0627 \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0648 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u062a\u0627<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%aa%d8%a7%d8%a8%d8%b9-wp_insert_post-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d8%a8%d8%b1%d8%a7%db%8c-%d8%af\/#%d9%86%d8%aa%db%8c%d8%ac%d9%87\" >\u0646\u062a\u06cc\u062c\u0647<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 7<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<div class=\"post-content\">\n<div id=\"thumbnail-image\" class=\"d-flex justify-content-center\">\n                  <img width=\"780\" height=\"454\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/functionsphp-\u062f\u0631-\u0648\u0631\u062f\u067e\u0631\u0633-\u0686\u06cc\u0633\u062a-\u0648-\u0686\u06af\u0648\u0646\u0647-\u0645\u06cc-\u062a\u0648\u0627\u0646\u06cc\u062f-\u0622\u0646-\u0631\u0627.webp.webp\" class=\"attachment-1110x454 size-1110x454 wp-post-image\" alt=\"\u0646\u062d\u0648\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 wp_insert_post \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0631\u0627\u06cc \u062f\u0631\u062c \u067e\u0633\u062a \u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc\" decoding=\"async\" fetchpriority=\"high\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/functionsphp-\u062f\u0631-\u0648\u0631\u062f\u067e\u0631\u0633-\u0686\u06cc\u0633\u062a-\u0648-\u0686\u06af\u0648\u0646\u0647-\u0645\u06cc-\u062a\u0648\u0627\u0646\u06cc\u062f-\u0622\u0646-\u0631\u0627.webp.webp 1024w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/07\/wordpress-expert-300x175.webp 300w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/07\/wordpress-expert-150x87.webp 150w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/07\/wordpress-expert-768x447.webp 768w\" sizes=\"(max-width: 780px) 100vw, 780px\" title=\"\">              <\/div>\n<p>\u0648\u0631\u062f\u067e\u0631\u0633<strong> wp_insert_post<\/strong> \u062a\u0627\u0628\u0639 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f\u060c \u067e\u0633\u062a \u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648\u0628 \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.  \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u062f\u0648\u0646 \u0632\u062d\u0645\u062a \u0645\u062d\u062a\u0648\u0627\u06cc \u067e\u0648\u06cc\u0627 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0632 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u0641\u0631\u0627\u062a\u0631 \u0628\u0631\u0648\u06cc\u062f. process.<\/p>\n<p>\u0627\u06af\u0631 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062e\u0648\u062f\u06a9\u0627\u0631\u0633\u0627\u0632\u06cc \u062a\u0648\u0644\u06cc\u062f \u0645\u062d\u062a\u0648\u0627\u060c \u0645\u062f\u06cc\u0631\u06cc\u062a \u0627\u0646\u0648\u0627\u0639 \u067e\u0633\u062a \u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc\u060c \u06cc\u0627 \u0627\u062e\u062a\u0635\u0627\u0635 \u0627\u0628\u0631\u062f\u0627\u062f\u0647 \u0647\u0627 \u0648 \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u0647\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06a9\u062f \u062f\u0627\u0631\u06cc\u062f\u060c \u0633\u067e\u0633 <strong>wp_insert_post<\/strong> \u0631\u0627\u0647 \u062d\u0644\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0634\u0645\u0627 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0622\u0646 \u0628\u0648\u062f\u06cc\u062f<\/p>\n<p>\u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0645\u0632\u0627\u06cc\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646 \u0631\u0627 \u0646\u0634\u0627\u0646 \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u062f <strong>wp_insert_post<\/strong> \u0639\u0645\u0644\u06a9\u0631\u062f \u0648 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0622\u0646 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.  \u0645\u0627 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0634\u0645\u0627 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u062b\u0627\u0644\u200c\u0647\u0627\u06cc \u0639\u0645\u0644\u06cc \u0631\u0627\u0647\u0646\u0645\u0627\u06cc\u06cc \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f\u060c \u0633\u0641\u0627\u0631\u0634\u06cc\u200c\u0633\u0627\u0632\u06cc \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0627\u0646\u0648\u0627\u0639 \u067e\u0633\u062a\u200c\u0647\u0627 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-why-use-the-wp-insert-post-function\"><span class=\"ez-toc-section\" id=\"%da%86%d8%b1%d8%a7_%d8%a7%d8%b2_%d8%aa%d8%a7%d8%a8%d8%b9_wp_insert_post_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%da%a9%d9%86%db%8c%d9%85%d8%9f\"><\/span><span class=\"ez-toc-section\" id=\"Why_Use_the_wp_insert_post_Function\"><\/span>\u0686\u0631\u0627 \u0627\u0632 \u062a\u0627\u0628\u0639 wp_insert_post \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645\u061f<span class=\"ez-toc-section-end\"><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0627\u06cc\u062c\u0627\u062f \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u067e\u0633\u062a \u0647\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0632\u0645\u0627\u0646 \u0628\u0631 \u0628\u0627\u0634\u062f\u060c \u0628\u0647 \u062e\u0635\u0648\u0635 \u0628\u0627 \u062d\u062c\u0645 \u0645\u062d\u062a\u0648\u0627\u06cc \u0632\u06cc\u0627\u062f.  \u0627\u06cc\u0646 \u0627\u0645\u0631 \u0628\u0647 \u0648\u06cc\u0698\u0647 \u0647\u0646\u06af\u0627\u0645 \u0635\u0627\u062f\u0631\u0627\u062a \u067e\u0633\u062a \u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u062e\u0648\u062f \u0628\u0647 \u06cc\u06a9 \u0648\u0628 \u0633\u0627\u06cc\u062a \u062c\u062f\u06cc\u062f \u0645\u0634\u0647\u0648\u062f \u0627\u0633\u062a.<\/p>\n<p>\u062e\u0648\u0634\u0628\u062e\u062a\u0627\u0646\u0647\u060c \u0628\u0627 <strong>wp_insert_post<\/strong> \u0628\u0627 \u0639\u0645\u0644\u06a9\u0631\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06af\u0631\u062f\u0634 \u06a9\u0627\u0631 \u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u062f \u0631\u0627 \u0633\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u062a\u0648\u0644\u06cc\u062f \u0645\u062d\u062a\u0648\u0627 \u0631\u0627 \u0628\u0647 \u0637\u0648\u0631 \u06a9\u0627\u0631\u0622\u0645\u062f\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631 \u06a9\u0646\u06cc\u062f.  \u0627\u06cc\u0646 \u0646\u0647 \u062a\u0646\u0647\u0627 \u0628\u0627\u0639\u062b \u0635\u0631\u0641\u0647 \u062c\u0648\u06cc\u06cc \u062f\u0631 \u0632\u0645\u0627\u0646 \u0645\u06cc \u0634\u0648\u062f\u060c \u0628\u0644\u06a9\u0647 \u062e\u0637\u0631 \u062e\u0637\u0627\u0647\u0627\u06cc \u0627\u0646\u0633\u0627\u0646\u06cc \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0648\u0631\u0648\u062f \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0627 \u0646\u06cc\u0632 \u0628\u0647 \u062d\u062f\u0627\u0642\u0644 \u0645\u06cc \u0631\u0633\u0627\u0646\u062f \u0648 \u0627\u0632 \u0635\u062d\u062a \u0645\u062f\u0627\u0648\u0645 \u0645\u062d\u062a\u0648\u0627\u06cc \u0634\u0645\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<p>\u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0632 \u0627\u0646\u0648\u0627\u0639 \u067e\u0633\u062a \u0628\u0631\u0627\u06cc \u0627\u0647\u062f\u0627\u0641 \u0645\u062e\u062a\u0644\u0641 \u0645\u0627\u0646\u0646\u062f \u067e\u0633\u062a \u0647\u0627\u06cc \u0648\u0628\u0644\u0627\u06af\u060c \u0635\u0641\u062d\u0627\u062a\u060c \u0645\u062d\u0635\u0648\u0644\u0627\u062a \u06cc\u0627 \u0627\u0646\u0648\u0627\u0639 \u067e\u0633\u062a \u0633\u0641\u0627\u0631\u0634\u06cc \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc \u06a9\u0646\u062f.  \u062a\u0637\u0628\u06cc\u0642 \u067e\u0630\u06cc\u0631\u06cc \u0627\u0632 <strong>wp_insert_post<\/strong> \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0633\u0627\u062e\u062a\u0627\u0631 \u0645\u062d\u062a\u0648\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u0645\u062a\u0646\u0627\u0633\u0628 \u0628\u0627 \u0646\u06cc\u0627\u0632\u0647\u0627\u06cc \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f \u0648\u0628 \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-parameters-for-wp-insert-post\"><span class=\"ez-toc-section\" id=\"%d9%be%d8%a7%d8%b1%d8%a7%d9%85%d8%aa%d8%b1%d9%87%d8%a7%db%8c_wp_insert_post\"><\/span><span class=\"ez-toc-section\" id=\"Parameters_for_wp_insert_post\"><\/span>\u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc wp_insert_post<span class=\"ez-toc-section-end\"><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0645\u0627\u0646\u0646\u062f \u0633\u0627\u06cc\u0631 \u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u0627\u0646\u0646\u062f get_posts\u060c <strong>wp_insert_post<\/strong> \u062a\u0627\u0628\u0639 \u0647\u0645\u0686\u0646\u06cc\u0646 \u062f\u0627\u0631\u0627\u06cc \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0628\u0631\u0627\u06cc \u062a\u0633\u0647\u06cc\u0644 \u062f\u0631\u062c \u067e\u0633\u062a \u0633\u0641\u0627\u0631\u0634\u06cc \u0627\u0633\u062a.  \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0631\u062e\u06cc \u0627\u0632 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u06a9\u0644\u06cc\u062f\u06cc \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0628\u0627 \u0622\u0646\u0647\u0627 \u0622\u0634\u0646\u0627 \u0628\u0627\u0634\u06cc\u062f \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<ul>\n<li><strong>\u0634\u0646\u0627\u0633\u0647 <\/strong>\u2013 \u0634\u0646\u0627\u0633\u0647 \u067e\u0633\u062a \u0628\u0631\u0627\u06cc \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc.  \u062f\u0631 \u0635\u0648\u0631\u062a \u0627\u0631\u0627\u0626\u0647\u060c \u062a\u0627\u0628\u0639 \u0633\u0639\u06cc \u0645\u06cc \u06a9\u0646\u062f \u067e\u0633\u062a \u0631\u0627 \u0628\u0627 \u0634\u0646\u0627\u0633\u0647 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u062f.  \u067e\u06cc\u0634 \u0641\u0631\u0636 0 \u0627\u0633\u062a (\u0628\u062f\u0648\u0646 \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc).<\/li>\n<li><strong>\u067e\u0633\u062a_\u0646\u0648\u06cc\u0633\u0646\u062f\u0647 <\/strong>&#8211; \u0634\u0646\u0627\u0633\u0647 \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u067e\u0633\u062a.  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0634\u0646\u0627\u0633\u0647 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0641\u0639\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>\u067e\u0633\u062a_\u0645\u062d\u062a\u0648\u0627 <\/strong>&#8211; \u0645\u062d\u062a\u0648\u0627\u06cc \u067e\u0633\u062a  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0631\u0634\u062a\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>post_content_filtered \u2013 <\/strong>\u0645\u062d\u062a\u0648\u0627\u06cc \u067e\u0633\u062a \u0641\u06cc\u0644\u062a\u0631 \u0634\u062f\u0647  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0631\u0634\u062a\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>\u0639\u0646\u0648\u0627\u0646_\u067e\u0633\u062a <\/strong>&#8211; \u0639\u0646\u0648\u0627\u0646 \u067e\u0633\u062a  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0631\u0634\u062a\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>post_status <\/strong>&#8211; \u0648\u0636\u0639\u06cc\u062a \u067e\u0633\u062a (\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0627\u0646\u062a\u0634\u0627\u0631\u060c \u067e\u06cc\u0634 \u0646\u0648\u06cc\u0633\u060c \u062e\u0635\u0648\u0635\u06cc).  \u0648\u0636\u0639\u06cc\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u067e\u0633\u062a \u0645\u0646\u062a\u0634\u0631 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/li>\n<li><strong>\u0646\u0648\u0639_\u067e\u0633\u062a <\/strong>&#8211; \u0646\u0648\u0639 \u067e\u0633\u062a (\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u067e\u0633\u062a\u060c page\u060c \u0646\u0648\u0639 \u067e\u0633\u062a \u0633\u0641\u0627\u0631\u0634\u06cc).  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u067e\u0633\u062a \u0627\u0633\u062a.<\/li>\n<li><strong>\u062a\u0627\u0631\u06cc\u062e \u0627\u0631\u0633\u0627\u0644 <\/strong>&#8211; \u062a\u0627\u0631\u06cc\u062e \u067e\u0633\u062a.  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062a\u0627\u0631\u06cc\u062e \u0648 \u0632\u0645\u0627\u0646 \u0641\u0639\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>post_\u06af\u0632\u06cc\u062f\u0647 <\/strong>&#8211; \u06af\u0632\u06cc\u062f\u0647 \u067e\u0633\u062a.  \u06af\u0632\u06cc\u062f\u0647 \u067e\u0633\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0631\u0634\u062a\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>post_name <\/strong>\u2013 \u0627\u0633\u0644\u0627\u06af \u067e\u0633\u062a (\u0646\u0633\u062e\u0647 \u0645\u0646\u0627\u0633\u0628 URL \u0639\u0646\u0648\u0627\u0646).  \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0639\u0646\u0648\u0627\u0646 \u067e\u0633\u062a \u067e\u0627\u06a9\u200c\u0634\u062f\u0647 \u0627\u0633\u062a.<\/li>\n<li><strong>post_parent <\/strong>\u2013 \u0634\u0646\u0627\u0633\u0647 \u067e\u0633\u062a \u0648\u0627\u0644\u062f (\u0627\u06af\u0631 \u067e\u0633\u062a \u0641\u0631\u0632\u0646\u062f \u067e\u0633\u062a \u062f\u06cc\u06af\u0631\u06cc \u0628\u0627\u0634\u062f).  \u0648\u0627\u0644\u062f \u067e\u0633\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 0 \u0627\u0633\u062a (\u0628\u062f\u0648\u0646 \u0648\u0627\u0644\u062f).<\/li>\n<li><strong>post_password <\/strong>&#8211; \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0628\u0631\u0627\u06cc \u0645\u062d\u0627\u0641\u0638\u062a \u0627\u0632 \u067e\u0633\u062a (\u062f\u0631 \u0635\u0648\u0631\u062a \u0645\u062d\u0627\u0641\u0638\u062a \u0628\u0627 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631).  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0631\u0634\u062a\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>post_category <\/strong>&#8211; \u0622\u0631\u0627\u06cc\u0647 \u0627\u06cc \u0627\u0632 \u0634\u0646\u0627\u0633\u0647 \u0647\u0627\u06cc \u062f\u0633\u062a\u0647 \u0628\u0631\u0627\u06cc \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0646 \u0628\u0647 \u067e\u0633\u062a.  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0622\u0631\u0627\u06cc\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>tags_input <\/strong>&#8211; \u0622\u0631\u0627\u06cc\u0647 \u0627\u06cc \u0627\u0632 \u0628\u0631\u0686\u0633\u0628 \u0647\u0627 \u0628\u0631\u0627\u06cc \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0646 \u0628\u0647 \u067e\u0633\u062a.  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0622\u0631\u0627\u06cc\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>\u0645\u0627\u0644\u06cc\u0627\u062a_ \u0648\u0631\u0648\u062f\u06cc <\/strong>&#8211; \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u06cc \u0627\u0632 \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u0647\u0627 \u0648 \u0627\u0635\u0637\u0644\u0627\u062d\u0627\u062a \u0628\u0631\u0627\u06cc \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0646 \u0628\u0647 \u067e\u0633\u062a.  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0622\u0631\u0627\u06cc\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<li><strong>meta_input <\/strong>&#8211; \u0622\u0631\u0627\u06cc\u0647 \u0627\u06cc \u0627\u0632 \u0645\u0642\u0627\u062f\u06cc\u0631 \u067e\u0633\u062a \u0645\u062a\u0627 \u06a9\u0647 \u062a\u0648\u0633\u0637 \u06a9\u0644\u06cc\u062f \u067e\u0633\u062a \u0645\u062a\u0627 \u06a9\u0644\u06cc\u062f \u0634\u062f\u0647 \u0627\u0633\u062a.  \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0622\u0631\u0627\u06cc\u0647 \u062e\u0627\u0644\u06cc \u0627\u0633\u062a.<\/li>\n<\/ul>\n<p>\u0646\u062d\u0648 \u0627\u0633\u0627\u0633\u06cc \u0627\u0632 <strong>wp_insert_post<\/strong> \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n<pre class=\"wp-block-preformatted\">$post_id = wp_insert_post( $args, $wp_error );<\/pre>\n<p><strong>$args<\/strong> \u0622\u0631\u0627\u06cc\u0647 \u0627\u06cc \u0627\u0633\u062a \u06a9\u0647 \u062d\u0627\u0648\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0633\u062a \u0648 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0622\u0646 \u0627\u0633\u062a <strong>$wp_error<\/strong> \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a <strong>\u062f\u0631\u0633\u062a \u0627\u0633\u062a\u060c \u0648\u0627\u0642\u0639\u06cc <\/strong>\u0628\u0631\u06af\u0631\u062f\u0627\u0646\u062f\u0646 a <strong>WP_Error <\/strong>\u0647\u062f\u0641 &#8211; \u0634\u06cc \u0631\u0648\u06cc \u0634\u06a9\u0633\u062a.  \u0648\u0642\u062a\u06cc \u0627\u062c\u0631\u0627 \u0634\u062f\u060c \u062a\u0627\u0628\u0639 \u0634\u0646\u0627\u0633\u0647 \u067e\u0633\u062a \u062a\u0627\u0632\u0647 \u062f\u0631\u062c \u0634\u062f\u0647 \u0631\u0627 \u0628\u0631\u0645\u06cc \u06af\u0631\u062f\u0627\u0646\u062f \u0631\u0648\u06cc \u0645\u0648\u0641\u0642\u06cc\u062a \u06cc\u0627 \u062e\u0637\u0627 \u062f\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0634\u06cc \u062f\u0631 \u063a\u06cc\u0631 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a.<\/p>\n<div class=\"protip\">\n<h4 class=\"title\">\u0645\u0637\u0627\u0644\u0639\u0647 \u067e\u06cc\u0634\u0646\u0647\u0627\u062f\u06cc<\/h4>\n<p>\u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0644\u06cc\u0633\u062a \u06a9\u0627\u0645\u0644 \u0627\u0632 \u0647\u0645\u0647 \u0645\u0648\u062c\u0648\u062f \u0627\u0633\u062a <b>wp_insert_post<\/b> \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0631\u0633\u0645\u06cc \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f  <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_insert_post\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\" data-wpel-link=\"external\">\u0645\u0633\u062a\u0646\u062f\u0627\u062a \u0648\u0631\u062f\u067e\u0631\u0633<\/a> page.<\/p>\n<\/p><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-how-to-use-the-wp-insert-post-function-in-wordpress\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d8%aa%d8%a7%d8%a8%d8%b9_wp_insert_post_%d8%af%d8%b1_%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3\"><\/span><span class=\"ez-toc-section\" id=\"How_to_use_the_wp_insert_post_Function_in_WordPress\"><\/span>\u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 wp_insert_post \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633<span class=\"ez-toc-section-end\"><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"293\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\u0641\u0627\u06cc\u0644 wp-includes\/post.php \u062f\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0641\u0627\u06cc\u0644 \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f\" class=\"wp-image-90527\" data-lazy-srcset=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/08\/The-wp-includes-post-php-file-is-located-in-the-file-manager.webp 1024w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/08\/The-wp-includes-post-php-file-is-located-in-the-file-manager-300x86.webp 300w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/08\/The-wp-includes-post-php-file-is-located-in-the-file-manager-150x43.webp 150w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/08\/The-wp-includes-post-php-file-is-located-in-the-file-manager-768x220.webp 768w\" data-lazy-sizes=\"(max-width: 1024px) 100vw, 1024px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-\u062a\u0627\u0628\u0639-wp_insert_post-\u062f\u0631-\u0648\u0631\u062f\u067e\u0631\u0633-\u0628\u0631\u0627\u06cc-\u062f\u0631\u062c-\u067e\u0633\u062a.webp.webp\" http: title=\"\"><img decoding=\"async\" width=\"1024\" height=\"293\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-\u062a\u0627\u0628\u0639-wp_insert_post-\u062f\u0631-\u0648\u0631\u062f\u067e\u0631\u0633-\u0628\u0631\u0627\u06cc-\u062f\u0631\u062c-\u067e\u0633\u062a.webp.webp\" alt=\"\u0641\u0627\u06cc\u0644 wp-includes\/post.php \u062f\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0641\u0627\u06cc\u0644 \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f\" class=\"wp-image-90527\" srcset=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/08\/The-wp-includes-post-php-file-is-located-in-the-file-manager.webp 1024w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/08\/The-wp-includes-post-php-file-is-located-in-the-file-manager-300x86.webp 300w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/08\/The-wp-includes-post-php-file-is-located-in-the-file-manager-150x43.webp 150w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/08\/The-wp-includes-post-php-file-is-located-in-the-file-manager-768x220.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" title=\"\"><\/figure>\n<\/div>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0646\u0645\u0648\u0646\u0647 \u0647\u0627\u06cc \u0639\u0645\u0644\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 wp_insert_post \u0628\u0631\u0627\u06cc \u062f\u0631\u062c \u067e\u0633\u062a \u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0631\u0627 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u06cc\u062f.  \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06a9\u062f \u0633\u0641\u0627\u0631\u0634\u06cc \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f <strong>wp-includes\/post.php<\/strong> \u0641\u0627\u06cc\u0644 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u062a\u0627\u0628\u0639.  \u0628\u0631 \u0647\u0627\u0633\u062a\u06cc\u0646\u06afer\u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633\u060c \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0627\u0632 \u0637\u0631\u06cc\u0642 <strong>\u0645\u062f\u06cc\u0631 \u0641\u0627\u06cc\u0644.<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\u0628\u0646\u0631 \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0648\u0631\u062f\u067e\u0631\u0633\" class=\"wp-image-98608\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703768989_936_20-\u0628\u0647\u062a\u0631\u06cc\u0646-\u062a\u0645-\u0631\u0633\u062a\u0648\u0631\u0627\u0646-\u0648\u0631\u062f\u067e\u0631\u0633-\u0648-\u0686\u0647-\u0648\u06cc\u0698\u06af\u06cc-\u0647\u0627\u06cc\u06cc-\u06a9\u0647.webp.webp 1024w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/WordPress-hosting_in-text-banner-300x88.webp 300w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/WordPress-hosting_in-text-banner-150x44.webp 150w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/WordPress-hosting_in-text-banner-768x225.webp 768w\" data-lazy-sizes=\"(max-width: 1024px) 100vw, 1024px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703768989_936_20-\u0628\u0647\u062a\u0631\u06cc\u0646-\u062a\u0645-\u0631\u0633\u062a\u0648\u0631\u0627\u0646-\u0648\u0631\u062f\u067e\u0631\u0633-\u0648-\u0686\u0647-\u0648\u06cc\u0698\u06af\u06cc-\u0647\u0627\u06cc\u06cc-\u06a9\u0647.webp.webp\" http: title=\"\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703768989_936_20-\u0628\u0647\u062a\u0631\u06cc\u0646-\u062a\u0645-\u0631\u0633\u062a\u0648\u0631\u0627\u0646-\u0648\u0631\u062f\u067e\u0631\u0633-\u0648-\u0686\u0647-\u0648\u06cc\u0698\u06af\u06cc-\u0647\u0627\u06cc\u06cc-\u06a9\u0647.webp.webp\" alt=\"\u0628\u0646\u0631 \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0648\u0631\u062f\u067e\u0631\u0633\" class=\"wp-image-98608\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703768989_936_20-\u0628\u0647\u062a\u0631\u06cc\u0646-\u062a\u0645-\u0631\u0633\u062a\u0648\u0631\u0627\u0646-\u0648\u0631\u062f\u067e\u0631\u0633-\u0648-\u0686\u0647-\u0648\u06cc\u0698\u06af\u06cc-\u0647\u0627\u06cc\u06cc-\u06a9\u0647.webp.webp 1024w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/WordPress-hosting_in-text-banner-300x88.webp 300w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/WordPress-hosting_in-text-banner-150x44.webp 150w,https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/WordPress-hosting_in-text-banner-768x225.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" title=\"\"><\/figure>\n<p>\u0645\u0627 \u0633\u0647 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0631\u0627\u06cc\u062c \u0631\u0627 \u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 \u062a\u0637\u0628\u06cc\u0642 \u067e\u0630\u06cc\u0631\u06cc \u0648 \u067e\u062a\u0627\u0646\u0633\u06cc\u0644 \u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 \u0628\u0631\u0631\u0633\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f:<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-how-to-insert-a-post-and-check-for-errors\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%d8%af%d8%b1%d8%ac_%d9%be%d8%b3%d8%aa_%d9%88_%d8%a8%d8%b1%d8%b1%d8%b3%db%8c_%d8%ae%d8%b7%d8%a7%d9%87%d8%a7\"><\/span><span class=\"ez-toc-section\" id=\"How_to_Insert_a_Post_and_Check_for_Errors\"><\/span>\u0631\u0648\u0634 \u062f\u0631\u062c \u067e\u0633\u062a \u0648 \u0628\u0631\u0631\u0633\u06cc \u062e\u0637\u0627\u0647\u0627<span class=\"ez-toc-section-end\"><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0628\u0627 \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0627\u0648\u0644\u06cc\u0647 \u0627\u0632 \u062f\u0631\u062c \u06cc\u06a9 \u067e\u0633\u062a \u062c\u062f\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <strong>wp_insert_post<\/strong> \u062a\u0627\u0628\u0639.  \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0648\u0634 \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u067e\u0633\u062a\u060c \u0631\u0633\u06cc\u062f\u06af\u06cc \u0628\u0647 \u062e\u0637\u0627\u0647\u0627 \u0648 \u0627\u0631\u0627\u0626\u0647 \u0628\u0627\u0632\u062e\u0648\u0631\u062f \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u062f\u0631 \u0635\u0648\u0631\u062a \u0628\u0631\u0648\u0632 \u0647\u0631 \u06af\u0648\u0646\u0647 \u0645\u0634\u06a9\u0644 \u062f\u0631 \u062d\u06cc\u0646 \u062f\u0631\u062c \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f. process.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ Include the necessary WordPress files\nrequire_once(ABSPATH . 'wp-admin\/includes\/post.php');\n\n\/\/ Create an array of post data for the new post\n$new_post = array(\n    'post_title'   =&gt; 'Sample Post Title', \/\/ Valid post name\n    'post_content' =&gt; 'This is a custom post with error handling.', \/\/ Unslashed post data - Set the content of the new post\n    'post_status'  =&gt; 'publish', \/\/ Unslashed post data - Set the status of the new post to 'publish'\n    'post_author'  =&gt; 1, \/\/ Replace with the desired author's user ID\n    'post_date'    =&gt; '1403-07-25 12:00:00', \/\/ Unslashed post data - Set a custom post date and time\n);\n\n\/\/ Insert post into the database\n$post_id = wp_insert_post($new_post, true); \/\/ Use $wp_error set to true for error handling\n\n\/\/ Check if there was an error during post insertion\nif (is_wp_error($post_id)) {\n    \/\/ Error occurred while inserting the post\n    echo \"Error: \" . $post_id-&gt;get_error_message();\n} else {\n    \/\/ The post was successfully inserted, and $post_id contains the post ID\n    echo \"Post inserted successfully. New Post ID: \" . $post_id;\n}<\/pre>\n<p>\u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u067e\u0633\u062a \u0645\u0648\u062c\u0648\u062f \u0631\u0627 \u0628\u0647 \u0631\u0648\u0632 \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u06a9\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ Include the necessary WordPress files\nrequire_once(ABSPATH . 'wp-admin\/includes\/post.php');\n\n$updated_post = array(\n    'ID'           =&gt; $post_id, \/\/ Existing post ID\n    'post_content' =&gt; 'This is the updated content of the post.', \/\/ Updated post content\n);\n\n\/\/ Update post in the database\n$updated_post_id = wp_update_post($updated_post); \/\/ Updated post ID\n\n\/\/ Check for errors during post updating\nif (is_wp_error($updated_post_id)) { \/\/ Check if the result is a WP_Error object\n    $error_message = $updated_post_id-&gt;get_error_message(); \/\/ Retrieve the error message\n    \/\/ Handle the error, e.g., display an error message to the user\n    echo \"Error while updating the post: \" . $error_message;\n} else {\n    \/\/ The post was successfully updated\n    echo \"Post updated successfully. New Post ID: \" . $updated_post_id;\n}<\/pre>\n<h3 class=\"wp-block-heading\" id=\"h-how-to-insert-a-new-post-into-a-wordpress-database\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%d8%af%d8%b1%d8%ac_%db%8c%da%a9_%d9%be%d8%b3%d8%aa_%d8%ac%d8%af%db%8c%d8%af_%d8%af%d8%b1_%d9%be%d8%a7%db%8c%da%af%d8%a7%d9%87_%d8%af%d8%a7%d8%af%d9%87_%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3\"><\/span><span class=\"ez-toc-section\" id=\"How_to_Insert_a_New_Post_Into_a_WordPress_Database\"><\/span>\u0631\u0648\u0634 \u062f\u0631\u062c \u06cc\u06a9 \u067e\u0633\u062a \u062c\u062f\u06cc\u062f \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648\u0631\u062f\u067e\u0631\u0633<span class=\"ez-toc-section-end\"><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0639\u0645\u06cc\u0642 \u062a\u0631 \u062f\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <strong>wp_insert_post<\/strong> \u0639\u0645\u0644\u06a9\u0631\u062f\u06cc \u0628\u0631\u0627\u06cc \u062f\u0631\u062c \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u067e\u0633\u062a \u062c\u062f\u06cc\u062f \u0648 \u06a9\u0627\u0648\u0634 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0627\u0636\u0627\u0641\u06cc \u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0641\u06cc\u0644\u062f\u0647\u0627\u06cc \u067e\u0633\u062a \u0633\u0641\u0627\u0631\u0634\u06cc \u0645\u0627\u0646\u0646\u062f \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u067e\u0633\u062a\u060c \u062a\u0627\u0631\u06cc\u062e \u067e\u0633\u062a \u0648 \u062f\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc \u067e\u0633\u062a.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ Include the necessary WordPress files\nrequire_once(ABSPATH . 'wp-includes\/post.php');\n\n\/\/ Create an array of post details for the new post\n$new_post = array(\n    'post_title'    =&gt; 'Test Post with Metadata', \/\/ Parsed post data - Set the title of the new post\n    'post_content'  =&gt; 'This is a custom post with metadata and taxonomy terms.', \/\/ Post content - Set the content of the new post\n    'post_type'     =&gt; 'post', \/\/ Processed post data - Set the post type to 'post'\n    'post_status'   =&gt; 'publish', \/\/ Post status - Set the status of the new post to 'publish'\n    'post_author'   =&gt; 1, \/\/ Replace with the desired author's user ID\n    'post_date'     =&gt; '1403-07-21 12:00:00', \/\/ Post date - Set a custom post date and time\n    'tags_input'    =&gt; array('tag1', 'tag2', 'tag3'), \/\/ Processed attachment post data - Set tags for the new post\n    'page_template' =&gt; 'custom-template.php', \/\/ Invalid page template - Set a custom page template for the post\n);\n\n\/\/ Insert WordPress post into the database\n$post_id = wp_insert_post($new_post); \/\/ Existing attachment post - Set the existing post ID for updating\n\n\/\/ Check if the post was successfully inserted\nif (!is_wp_error($post_id)) {\n    \/\/ The post was successfully inserted, and $post_id contains the post ID\n\n\/\/ Get the post meta field based \u0631\u0648\u06cc the post ID\n    $meta_value = get_post_meta($post_id, 'meta_key_name', true);\n\n    \/\/ Add custom post categories (replace with actual category IDs)\n    $post_categories = array(2, 4); \/\/ Filters attachment post data - Category IDs to assign to the post\n    wp_set_post_categories($post_id, $post_categories); \/\/ Set post categories\n\n    \/\/ Add custom post meta data\n    update_post_meta($post_id, '_custom_meta_key', 'Custom Meta Value'); \/\/ Replace '_custom_meta_key' with your custom meta key and set its value\n\n    echo \"Post inserted successfully. New Post ID: \" . $post_id;\n} else {\n    \/\/ Error occurred while inserting the post\n    echo \"Error: \" . $post_id-&gt;get_error_message();\n}<\/pre>\n<h3 class=\"wp-block-heading\" id=\"h-how-to-insert-a-post-with-custom-taxonomy-and-post-meta-data\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%d8%af%d8%b1%d8%ac_%db%8c%da%a9_%d9%be%d8%b3%d8%aa_%d8%a8%d8%a7_%d8%b7%d8%a8%d9%82%d9%87_%d8%a8%d9%86%d8%af%db%8c_%d8%b3%d9%81%d8%a7%d8%b1%d8%b4%db%8c_%d9%88_%d8%af%d8%a7%d8%af%d9%87_%d9%87%d8%a7%db%8c_%d9%85%d8%aa%d8%a7\"><\/span><span class=\"ez-toc-section\" id=\"How_to_Insert_a_Post_With_Custom_Taxonomy_and_Post_Meta_Data\"><\/span>\u0631\u0648\u0634 \u062f\u0631\u062c \u06cc\u06a9 \u067e\u0633\u062a \u0628\u0627 \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0648 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u062a\u0627<span class=\"ez-toc-section-end\"><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u0634\u0627\u0645\u0644 \u062f\u0631\u062c \u06cc\u06a9 \u067e\u0633\u062a \u0628\u0627 \u0634\u0631\u0627\u06cc\u0637 \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0648 \u0627\u0628\u0631\u062f\u0627\u062f\u0647 \u067e\u0633\u062a \u0627\u0636\u0627\u0641\u06cc \u0627\u0633\u062a.  \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u067e\u0633\u062a \u0647\u0627 \u0631\u0627 \u0628\u0627 \u0627\u0646\u0639\u0637\u0627\u0641 \u0628\u06cc\u0634\u062a\u0631\u06cc \u0633\u0627\u0632\u0645\u0627\u0646\u062f\u0647\u06cc \u0648 \u062f\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ Include the necessary WordPress files\nrequire_once(ABSPATH . 'wp-includes\/post.php');\n\n\/\/ Create an array of post data for the new post\n$new_post = array(\n    'post_title'    =&gt; 'Custom Post with Taxonomy and Meta Data', \/\/ Otherwise unmodified post data - Set the title of the new post\n    'post_content'  =&gt; 'This is a custom post with taxonomy and meta data.', \/\/ Post content - Set the content of the new post\n    'post_type'     =&gt; 'post', \/\/ Post type - Set the post type to 'post'\n    'post_status'   =&gt; 'pending', \/\/ Pending review posts - Set the status of the new post to 'pending' for review\n    'post_author'   =&gt; 1, \/\/ Replace with the desired author's user ID\n    'post_date'     =&gt; '1403-08-05 12:00:00', \/\/ Post date - Set a custom post date and time\n    'post_name'     =&gt; 'custom-post-taxonomy-meta', \/\/ Otherwise unmodified post data - Set the post slug\n);\n\n\/\/ Insert post into the database\n$post_id = wp_insert_post($new_post);\n\n\/\/ Check if the post was successfully inserted\nif (!is_wp_error($post_id)) {\n    \/\/ The post was successfully inserted, and $post_id contains the post ID\n\n    \/\/ Add custom post categories (replace with actual category IDs)\n    $post_categories = array(2, 4); \/\/ Category IDs to assign to the post\n    wp_set_post_categories($post_id, $post_categories); \/\/ Set post categories\n\n    \/\/ Add post meta data\n    update_post_meta($post_id, '_custom_meta_key', 'Custom Meta Value'); \/\/ Sanitized attachment post data - Replace '_custom_meta_key' with your custom meta key and set its value\n\n    \/\/ Add custom taxonomy terms (replace with actual taxonomy and term IDs)\n    wp_set_object_terms($post_id, array(3, 5), 'custom_taxonomy'); \/\/ Set custom taxonomy terms\n\n    echo \"Post inserted successfully with custom taxonomy and meta data. New Post ID: \" . $post_id;\n} else {\n    \/\/ Error occurred while inserting the post\n    echo \"Error: \" . $post_id-&gt;get_error_message();\n}<\/pre>\n<div class=\"protip\">\n<h4 class=\"title\">\u0645\u0637\u0627\u0644\u0639\u0647 \u067e\u06cc\u0634\u0646\u0647\u0627\u062f\u06cc<\/h4>\n<p>\u0628\u0627 \u0622\u0645\u0648\u0632\u0634 \u0647\u0627\u06cc \u0645\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u067e\u0633\u062a \u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u06cc\u0634\u062a\u0631 \u0628\u06cc\u0627\u0645\u0648\u0632\u06cc\u062f:<br \/>\n\u0631\u0648\u0634 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u067e\u0633\u062a \u0647\u0627\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0648\u0631\u062f\u067e\u0631\u0633<br \/>\n\u0631\u0648\u0634 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u06cc\u0632\u06cc \u067e\u0633\u062a \u0647\u0627 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633<br \/>\n\u0631\u0648\u0634 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u067e\u0633\u062a \u0628\u0647 \u0635\u0641\u062d\u0647 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633<br \/>\n\u0631\u0648\u0634 \u0646\u0645\u0627\u06cc\u0634 \u0645\u062a\u0627\u062f\u06cc\u062a\u0627\u06cc \u067e\u0633\u062a \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 get_post_meta \u0648\u0631\u062f\u067e\u0631\u0633<\/p>\n<\/p><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\"><\/span>\u0646\u062a\u06cc\u062c\u0647<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0627\u06cc\u0646 <strong>wp_insert_post<\/strong> \u0639\u0645\u0644\u06a9\u0631\u062f \u0648\u0628\u200c\u0633\u0627\u06cc\u062a\u200c\u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0627 \u0628\u0627 \u062f\u0631\u062c \u067e\u0633\u062a \u0633\u0641\u0627\u0631\u0634\u06cc \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647\u060c \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f process \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u06cc\u0627 \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc \u0645\u062d\u062a\u0648\u0627  \u0635\u0627\u062d\u0628\u0627\u0646 \u0648 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0633\u0627\u06cc\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06a9\u0631\u062f\u060c \u0627\u0632 \u062b\u0628\u0627\u062a \u0648 \u062f\u0642\u062a \u062f\u0631 \u0633\u0631\u0627\u0633\u0631 \u0648\u0628 \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0645\u06cc \u06a9\u0646\u0646\u062f.<\/p>\n<p>\u0686\u0647 \u06cc\u06a9 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u0647 \u0628\u0627\u062a\u062c\u0631\u0628\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u06af\u0631\u062f\u0634 \u06a9\u0627\u0631 \u062e\u0648\u062f \u0647\u0633\u062a\u06cc\u062f \u06cc\u0627 \u06cc\u06a9 \u0645\u0628\u062a\u062f\u06cc \u06a9\u0647 \u0645\u0634\u062a\u0627\u0642 \u06af\u0633\u062a\u0631\u0634 \u062f\u0627\u0646\u0634 \u0648 \u062f\u0631\u06a9 \u062e\u0648\u062f \u0647\u0633\u062a\u06cc\u062f <strong>wp_insert_post<\/strong> \u06cc\u06a9 \u0645\u0647\u0627\u0631\u062a \u0627\u0631\u0632\u0634\u0645\u0646\u062f \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0637\u0648\u0631 \u0642\u0627\u0628\u0644 \u062a\u0648\u062c\u0647\u06cc \u0628\u0631\u0627\u06cc \u0648\u0628 \u0633\u0627\u06cc\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u0634\u0645\u0627 \u0645\u0641\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<p>\u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0647\u0631\u0645 <strong>wp_insert_post<\/strong> \u0628\u0627 \u0633\u0627\u06cc\u0631 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633\u060c \u0645\u0627\u0646\u0646\u062f \u062d\u0644\u0642\u0647 \u0648\u0631\u062f\u067e\u0631\u0633\u060c \u0628\u0631\u0627\u06cc \u0642\u062f\u0631\u062a \u0646\u0645\u0627\u06cc\u0634 \u067e\u0648\u06cc\u0627 \u0645\u062d\u062a\u0648\u0627.  \u0627\u06cc\u0646 \u0647\u0645 \u0627\u0641\u0632\u0627\u06cc\u06cc \u0628\u0647 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u062a\u062c\u0631\u0628\u06cc\u0627\u062a \u0627\u0633\u062a\u062b\u0646\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0628\u0627\u0632\u062f\u06cc\u062f\u06a9\u0646\u0646\u062f\u06af\u0627\u0646 \u0648\u0628 \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0641\u0631\u0627\u0647\u0645 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/p><\/div>\n\n<div>\u0628\u0631\u0627\u06cc \u0646\u06af\u0627\u0631\u0634 \u0628\u062e\u0634\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0645\u062a\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0632 \u062a\u0631\u062c\u0645\u0647 \u0645\u0627\u0634\u06cc\u0646\u06cc \u06cc\u0627 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc GPT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f <br \/>\n\u0644\u0637\u0641\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0634\u06a9\u0644 \u062f\u0631 \u0645\u062a\u0646 \u06cc\u0627 \u0645\u0641\u0647\u0648\u0645 \u0646\u0628\u0648\u062f\u0646 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u06a9\u0645\u0647 \u06af\u0632\u0627\u0631\u0634 \u0646\u0648\u0634\u062a\u0627\u0631 \u06cc\u0627 \u062f\u0631\u062c \u0646\u0638\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0645\u0627 \u0631\u0627 \u0627\u0632 \u062c\u0632\u06cc\u06cc\u0627\u062a \u0645\u0634\u06a9\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u062f\u0647 \u0645\u0637\u0644\u0639 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0622\u0646 \u0631\u0633\u06cc\u062f\u06af\u06cc \u06a9\u0646\u06cc\u0645\n<\/div>\n<p>\u0632\u0645\u0627\u0646 \u0627\u0646\u062a\u0634\u0627\u0631: 1402-12-29 04:56:02<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;10947&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 wp_insert_post \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0631\u0627\u06cc \u062f\u0631\u062c \u067e\u0633\u062a \u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 7<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u0648\u0631\u062f\u067e\u0631\u0633 wp_insert_post \u062a\u0627\u0628\u0639 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f\u060c \u067e\u0633\u062a \u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648\u0628 \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u062f\u0648\u0646 \u0632\u062d\u0645\u062a \u0645\u062d\u062a\u0648\u0627\u06cc \u067e\u0648\u06cc\u0627 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0632 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u0641\u0631\u0627\u062a\u0631 \u0628\u0631\u0648\u06cc\u062f. process. \u0627\u06af\u0631 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062e\u0648\u062f\u06a9\u0627\u0631\u0633\u0627\u0632\u06cc \u062a\u0648\u0644\u06cc\u062f [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":10793,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[550],"tags":[1151,2747,2746],"class_list":["post-10947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-1151","tag--wordpress","tag-2746"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/10947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=10947"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/10947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/10793"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=10947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=10947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=10947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}