{"id":23613,"date":"2025-11-11T20:16:44","date_gmt":"2025-11-11T16:46:44","guid":{"rendered":"https:\/\/orderhost.net\/blog\/?p=23613"},"modified":"2025-11-12T15:11:15","modified_gmt":"2025-11-12T11:41:15","slug":"wordpress-functions-guide","status":"publish","type":"post","link":"https:\/\/orderhost.net\/blog\/wordpress-functions-guide\/","title":{"rendered":"\u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0686\u06cc\u0633\u062a\u061f \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u06a9\u0627\u0645\u0644 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0648 \u0633\u0641\u0627\u0631\u0634\u06cc\u200c \u0633\u0627\u0632\u06cc"},"content":{"rendered":"<div id=\"model-response-message-contentr_6b38cc5efb4a7b28\" class=\"markdown markdown-main-panel stronger enable-updated-hr-color\" dir=\"rtl\">\n<h2><span style=\"font-size: 20px;\">\u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0686\u06cc\u0633\u062a\u061f \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u06a9\u0627\u0645\u0644 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0648 \u0633\u0641\u0627\u0631\u0634\u06cc\u200c \u0633\u0627\u0632\u06cc<\/span><\/h2>\n<p style=\"text-align: justify;\">\u0648\u0631\u062f\u067e\u0631\u0633 (<a href=\"https:\/\/fa.wordpress.org\/\" target=\"_blank\" rel=\"noopener\">WordPress<\/a>) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062d\u0628\u0648\u0628\u200c\u062a\u0631\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u062d\u062a\u0648\u0627 (CMS) \u062f\u0631 \u062c\u0647\u0627\u0646\u060c \u0628\u0631 \u067e\u0627\u06cc\u0647 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0646\u0648\u06cc\u0633\u06cc PHP \u0648 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u06af\u0633\u062a\u0631\u062f\u0647 \u0627\u0632 <a href=\"https:\/\/orderhost.net\/blog\/wordpress-functions-guide\/%20\"><b>\u062a\u0648\u0627\u0628\u0639 (Functions)<\/b><\/a> \u0628\u0646\u0627 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639\u060c \u0642\u0637\u0639\u0647 \u06a9\u062f\u0647\u0627\u06cc \u0627\u0632 \u067e\u06cc\u0634 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647\u200c\u0627\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0646\u0648\u06cc\u0633\u0627\u0646 \u0648 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f \u062a\u0627 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0646\u0648\u0634\u062a\u0646 \u06a9\u062f\u0647\u0627\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627\u060c \u0648\u0638\u0627\u06cc\u0641 \u0645\u0634\u062e\u0635\u06cc \u0631\u0627 \u062f\u0631 \u0647\u0633\u062a\u0647\u060c \u0642\u0627\u0644\u0628\u200c\u0647\u0627 \u0648 \u0627\u0641\u0632\u0648\u0646\u0647\u200c\u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <a href=\"https:\/\/orderhost.net\/blog\/wordpress-functions-guide\/%20\">\u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633<\/a>\u060c \u0641\u0631\u0622\u06cc\u0646\u062f \u062a\u0648\u0633\u0639\u0647 \u0631\u0627 <b>\u0633\u0631\u06cc\u0639\u200c\u062a\u0631<\/b>\u060c <b>\u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f\u062a\u0631<\/b> \u0648 <b>\u0627\u06cc\u0645\u0646\u200c\u062a\u0631<\/b> \u0645\u06cc\u200c\u0633\u0627\u0632\u062f. \u062f\u0631 \u0648\u0627\u0642\u0639\u060c \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0645\u062d\u062a\u0648\u0627\u06cc \u067e\u0648\u06cc\u0627 \u0645\u0627\u0646\u0646\u062f \u0639\u0646\u0648\u0627\u0646 \u0633\u0627\u06cc\u062a\u060c \u0645\u062d\u062a\u0648\u0627\u06cc \u0646\u0648\u0634\u062a\u0647\u200c\u0647\u0627\u060c \u0641\u0647\u0631\u0633\u062a\u200c\u0647\u0627 \u0648 &#8230; \u0631\u0627 \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 (Database) \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u062c\u0627\u06cc \u0645\u0646\u0627\u0633\u0628 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f.<\/p><div class=\"order-2\" id=\"order-1920484532\"><style>\r\n\/* \ud83c\udfa8 \u0627\u0633\u062a\u0627\u06cc\u0644 \u06a9\u0644\u06cc \u0628\u0646\u0631 \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner {\r\n  width: 100%;\r\n  max-width: 660px;\r\n  margin: 20px auto;\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n  direction: rtl;\r\n  font-family: 'IRANSans', sans-serif;\r\n  border-radius: 10px;\r\n  overflow: hidden;\r\n  box-shadow: 0 3px 10px rgba(0,0,0,0.1);\r\n  background: #f9f9f9;\r\n}\r\n\r\n\/* \ud83d\udd38 \u0628\u062e\u0634 \u0631\u0627\u0633\u062a (\u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u062f \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647) *\/\r\n.orderhost-banner .right {\r\n  flex: 1 1 30%;\r\n  position: relative;\r\n  overflow: hidden;\r\n  background: linear-gradient(135deg, var(--brand-color1, #ff9800), var(--brand-color2, #f57c00));\r\n}\r\n\r\n.orderhost-banner .right img {\r\n  width: 100%;\r\n  height: 100%;\r\n  object-fit: cover; \/* \ud83d\udcf8 \u067e\u0631 \u06a9\u0631\u062f\u0646 \u06a9\u0627\u0645\u0644 \u0628\u062f\u0648\u0646 \u06a9\u0634\u06cc\u062f\u06af\u06cc *\/\r\n  object-position: center;\r\n  display: block;\r\n}\r\n\r\n\/* \ud83d\udd39 \u0628\u062e\u0634 \u0686\u067e (\u0645\u062a\u0646 \u062a\u0628\u0644\u06cc\u063a) *\/\r\n.orderhost-banner .left {\r\n  flex: 1 1 70%;\r\n  background: #351158;\r\n  padding: 10px 20px;\r\n  box-sizing: border-box;\r\n}\r\n\r\n\/* \ud83d\udcdd \u0639\u0646\u0648\u0627\u0646 \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner h3 {\r\n  color: #fff;\r\n  font-size: 16px;\r\n  font-weight: bold;\r\n  margin: 0 0 5px 0;\r\n}\r\n\r\n\/* \ud83d\udcc4 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner p {\r\n  color: #fff;\r\n  font-size: 14px;\r\n  margin: 0 0 10px 0;\r\n  line-height: 1.6;\r\n}\r\n\r\n\/* \ud83d\udd18 \u062f\u06a9\u0645\u0647 CTA *\/\r\n.orderhost-banner a.button {\r\n  display: inline-block;\r\n  background: #fff;\r\n  color: #351158;\r\n  text-decoration: none;\r\n  padding: 7px 16px;\r\n  border-radius: 6px;\r\n  font-size: 14px;\r\n  font-weight: bold;\r\n  transition: 0.3s;\r\n}\r\n.orderhost-banner a.button:hover {\r\n  background: #351158;\r\n  color: #fff;\r\n  border: 1px solid #fff;\r\n}\r\n\r\n\/* \ud83c\udf81 \u0628\u0627\u06a9\u0633 \u06a9\u062f \u062a\u062e\u0641\u06cc\u0641 *\/\r\n.orderhost-banner .discount-box {\r\n  background: rgba(255,255,255,0.2);\r\n  border: 1px dashed #fff;\r\n  border-radius: 5px;\r\n  padding: 5px 10px;\r\n  display: inline-block;\r\n  font-weight: bold;\r\n  color: #fff;\r\n  margin-top: 10px;\r\n  cursor: pointer;\r\n  user-select: none;\r\n  transition: 0.3s;\r\n}\r\n.orderhost-banner .discount-box:hover {\r\n  background: rgba(255,255,255,0.3);\r\n}\r\n\r\n\/* \ud83d\udd14 \u067e\u06cc\u0627\u0645 \u06a9\u067e\u06cc \u0645\u0648\u0641\u0642 *\/\r\n.copy-toast {\r\n  display: none;\r\n  margin: 12px auto 0 auto;\r\n  background: #22bb33;\r\n  color: #fff;\r\n  padding: 10px 16px;\r\n  border-radius: 8px;\r\n  font-size: 14px;\r\n  box-shadow: 0 3px 10px rgba(0,0,0,0.15);\r\n  width: fit-content;\r\n  max-width: 90%;\r\n  text-align: center;\r\n  opacity: 0;\r\n  transform: translateY(6px);\r\n  transition: opacity 0.25s ease, transform 0.25s ease;\r\n}\r\n.copy-toast.show {\r\n  display: inline-block;\r\n  opacity: 1;\r\n  transform: translateY(0);\r\n}\r\n\r\n\/* \ud83d\udcf1 \u062d\u0627\u0644\u062a \u0645\u0648\u0628\u0627\u06cc\u0644 *\/\r\n@media (max-width: 600px) {\r\n  .orderhost-banner {\r\n    flex-direction: column;\r\n    text-align: center;\r\n  }\r\n  .orderhost-banner .right, \r\n  .orderhost-banner .left {\r\n    flex: 1 1 100%;\r\n    height: 200px;\r\n  }\r\n}\r\n<\/style>\r\n\r\n<!-- \ud83d\udce6 \u0628\u0646\u0631 \u062a\u0628\u0644\u06cc\u063a -->\r\n<div id=\"orderhost-banner-container\"><\/div>\r\n<div class=\"copy-toast\" id=\"copy-toast\">\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641 \u06a9\u067e\u06cc \u0634\u062f \u2705<\/div>\r\n\r\n<script>\r\nif (!window.orderhostBannerLoaded) {\r\n  window.orderhostBannerLoaded = true;\r\n\r\n  const adConfig = {\r\n    brandLogo: \"https:\/\/orderhost.net\/blog\/wp-content\/uploads\/2025\/11\/wp-ads.png\", \/\/ \ud83d\udcf8 \u0639\u06a9\u0633 \u06a9\u0627\u0645\u0644 \u0628\u062e\u0634 \u0631\u0627\u0633\u062a\r\n    title: \"\u0647\u0627\u0633\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u06cc\u0631\u0627\u0646 \u0648 \u0622\u0644\u0645\u0627\u0646 - \u0633\u0631\u0639\u062a \u0648 \u0627\u0645\u0646\u06cc\u062a \u0628\u0627\u0644\u0627 \ud83d\ude80\",\r\n    description: \"\u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0648\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627 \u062f\u06cc\u0633\u06a9 NVMe \u0648 \u06a9\u0646\u062a\u0631\u0644\u200c\u067e\u0646\u0644 \u0633\u06cc\u200c\u067e\u0646\u0644\u060c \u0645\u0646\u0627\u0633\u0628 \u0633\u0627\u06cc\u062a\u200c\u0647\u0627\u06cc \u067e\u0631\u062a\u0631\u0627\u0641\u06cc\u06a9 \u0648 \u0641\u0631\u0648\u0634\u06af\u0627\u0647\u06cc.\",\r\n    discountCode: \"WP50\",\r\n    link: \"https:\/\/orderhost.net\/wordpress-hosting\",\r\n    brandColor1: \"#ff9800\",\r\n    brandColor2: \"#f57c00\"\r\n  };\r\n\r\n  const container = document.getElementById(\"orderhost-banner-container\");\r\n  container.innerHTML = `\r\n    <div class=\"orderhost-banner\"\r\n      style=\"--brand-color1: ${adConfig.brandColor1}; --brand-color2: ${adConfig.brandColor2};\"\r\n    >\r\n      <div class=\"right\">\r\n        <img decoding=\"async\" src=\"${adConfig.brandLogo}\" alt=\"OrderHost Banner\">\r\n      <\/div>\r\n      <div class=\"left\">\r\n        <h3>${adConfig.title}<\/h3>\r\n        <p>${adConfig.description}<\/p>\r\n        <a href=\"${adConfig.link}\" class=\"button\" target=\"_blank\">\u0645\u0634\u0627\u0647\u062f\u0647 \u067e\u0644\u0646\u200c\u0647\u0627<\/a>\r\n        <div class=\"discount-box\" id=\"discount-box\">\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641: ${adConfig.discountCode}<\/div>\r\n      <\/div>\r\n    <\/div>\r\n  `;\r\n\r\n  const discountBox = document.getElementById(\"discount-box\");\r\n  const toast = document.getElementById(\"copy-toast\");\r\n\r\n  discountBox.addEventListener(\"click\", () => {\r\n    navigator.clipboard.writeText(adConfig.discountCode).then(() => {\r\n      toast.classList.add(\"show\");\r\n      setTimeout(() => toast.classList.remove(\"show\"), 2000);\r\n    });\r\n  });\r\n}\r\n<\/script>\r\n<\/div>\n<p style=\"text-align: justify;\">\u0627\u06af\u0631 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u062f \u06cc\u06a9 \u0642\u0627\u0644\u0628 \u06cc\u0627 \u0627\u0641\u0632\u0648\u0646\u0647 \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0628\u0631\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0637\u0631\u0627\u062d\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0634\u0646\u0627\u062e\u062a \u062f\u0642\u06cc\u0642 <a href=\"https:\/\/orderhost.net\/blog\/wordpress-functions-guide\/%20\">\u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633<\/a> \u0627\u0648\u0644\u06cc\u0646 \u06af\u0627\u0645 \u0636\u0631\u0648\u0631\u06cc \u0627\u0633\u062a.<br data-start=\"527\" data-end=\"530\" \/><br \/>\n\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0627\u0632 <a href=\"https:\/\/orderhost.net\">Orderhost<\/a>\u060c \u0645\u062d\u0628\u0648\u0628\u200c\u062a\u0631\u06cc\u0646 \u0648 \u067e\u0631\u06a9\u0627\u0631\u0628\u0631\u062f\u062a\u0631\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0627 \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u0645\u062b\u0627\u0644\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u062d\u0631\u0641\u0647\u200c\u0627\u06cc\u200c\u062a\u0631 \u0627\u0632 \u0647\u0645\u06cc\u0634\u0647 \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0631\u0627 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u06cc\u062f.<\/p>\n<hr \/>\n<h2 style=\"text-align: justify;\" data-start=\"1411\" data-end=\"1443\">\u0686\u0631\u0627 \u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0647\u0645\u06cc\u062a \u062f\u0627\u0631\u0646\u062f\u061f<\/h2>\n<ul style=\"text-align: justify;\" data-start=\"1445\" data-end=\"1826\">\n<li data-start=\"1445\" data-end=\"1521\">\n<p data-start=\"1447\" data-end=\"1521\"><strong data-start=\"1447\" data-end=\"1463\">\u0633\u0627\u062f\u06af\u06cc \u062a\u0648\u0633\u0639\u0647:<\/strong> \u0628\u0627 \u062a\u0648\u0627\u0628\u0639 \u0622\u0645\u0627\u062f\u0647\u060c \u062a\u0648\u0633\u0639\u0647 \u0642\u0627\u0644\u0628 \u0648 \u0627\u0641\u0632\u0648\u0646\u0647 \u0633\u0631\u06cc\u0639\u200c\u062a\u0631 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n<\/li>\n<li data-start=\"1522\" data-end=\"1621\">\n<p data-start=\"1524\" data-end=\"1621\"><strong data-start=\"1524\" data-end=\"1543\">\u0642\u0627\u0628\u0644\u06cc\u062a \u0627\u0637\u0645\u06cc\u0646\u0627\u0646:<\/strong> \u0686\u0648\u0646 \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u062a\u0648\u0633\u0637 \u062a\u06cc\u0645 \u0631\u0633\u0645\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u062a\u0648\u0633\u0639\u0647 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647\u200c\u0627\u0646\u062f\u060c \u062a\u0633\u062a\u200c\u0634\u062f\u0647 \u0648 \u0645\u0637\u0645\u0626\u0646 \u0647\u0633\u062a\u0646\u062f.<\/p>\n<\/li>\n<li data-start=\"1622\" data-end=\"1735\">\n<p data-start=\"1624\" data-end=\"1735\"><strong data-start=\"1624\" data-end=\"1645\">\u0633\u0641\u0627\u0631\u0634\u06cc\u200c\u0633\u0627\u0632\u06cc \u0622\u0633\u0627\u0646:<\/strong> \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u062a\u0648\u0627\u0628\u0639 \u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627 (filters) \u0648 \u0627\u06a9\u0634\u0646\u200c\u0647\u0627 (actions) \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0627\u062f.<\/p>\n<\/li>\n<li data-start=\"1736\" data-end=\"1826\">\n<p data-start=\"1738\" data-end=\"1826\"><strong data-start=\"1738\" data-end=\"1758\">\u0633\u0627\u0632\u06af\u0627\u0631\u06cc \u0628\u0627 \u0647\u0633\u062a\u0647:<\/strong> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627\u0639\u062b \u0633\u0627\u0632\u06af\u0627\u0631\u06cc \u0628\u0647\u062a\u0631 \u0628\u0627 \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc \u0622\u06cc\u0646\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n<\/li>\n<\/ul>\n<h2><div style=\"margin-left: auto;margin-right: auto;text-align: center;\" id=\"order-1237385318\"><style>\r\n\/* \ud83c\udfa8 \u0627\u0633\u062a\u0627\u06cc\u0644 \u06a9\u0644\u06cc \u0628\u0646\u0631 \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner {\r\n  width: 100%;\r\n  max-width: 660px;\r\n  margin: 20px auto;\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n  direction: rtl;\r\n  font-family: 'IRANSans', sans-serif;\r\n  border-radius: 10px;\r\n  overflow: hidden;\r\n  box-shadow: 0 3px 10px rgba(0,0,0,0.1);\r\n  background: #f9f9f9;\r\n}\r\n\r\n\/* \ud83d\udd38 \u0628\u062e\u0634 \u0631\u0627\u0633\u062a (\u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u062f \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647) *\/\r\n.orderhost-banner .right {\r\n  flex: 1 1 30%;\r\n  position: relative;\r\n  overflow: hidden;\r\n  background: linear-gradient(135deg, var(--brand-color1, #ff9800), var(--brand-color2, #f57c00));\r\n}\r\n\r\n.orderhost-banner .right img {\r\n  width: 100%;\r\n  height: 100%;\r\n  object-fit: cover; \/* \ud83d\udcf8 \u067e\u0631 \u06a9\u0631\u062f\u0646 \u06a9\u0627\u0645\u0644 \u0628\u062f\u0648\u0646 \u06a9\u0634\u06cc\u062f\u06af\u06cc *\/\r\n  object-position: center;\r\n  display: block;\r\n}\r\n\r\n\/* \ud83d\udd39 \u0628\u062e\u0634 \u0686\u067e (\u0645\u062a\u0646 \u062a\u0628\u0644\u06cc\u063a) *\/\r\n.orderhost-banner .left {\r\n  flex: 1 1 70%;\r\n  background: #351158;\r\n  padding: 10px 20px;\r\n  box-sizing: border-box;\r\n}\r\n\r\n\/* \ud83d\udcdd \u0639\u0646\u0648\u0627\u0646 \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner h3 {\r\n  color: #fff;\r\n  font-size: 16px;\r\n  font-weight: bold;\r\n  margin: 0 0 5px 0;\r\n}\r\n\r\n\/* \ud83d\udcc4 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner p {\r\n  color: #fff;\r\n  font-size: 14px;\r\n  margin: 0 0 10px 0;\r\n  line-height: 1.6;\r\n}\r\n\r\n\/* \ud83d\udd18 \u062f\u06a9\u0645\u0647 CTA *\/\r\n.orderhost-banner a.button {\r\n  display: inline-block;\r\n  background: #fff;\r\n  color: #351158;\r\n  text-decoration: none;\r\n  padding: 7px 16px;\r\n  border-radius: 6px;\r\n  font-size: 14px;\r\n  font-weight: bold;\r\n  transition: 0.3s;\r\n}\r\n.orderhost-banner a.button:hover {\r\n  background: #351158;\r\n  color: #fff;\r\n  border: 1px solid #fff;\r\n}\r\n\r\n\/* \ud83c\udf81 \u0628\u0627\u06a9\u0633 \u06a9\u062f \u062a\u062e\u0641\u06cc\u0641 *\/\r\n.orderhost-banner .discount-box {\r\n  background: rgba(255,255,255,0.2);\r\n  border: 1px dashed #fff;\r\n  border-radius: 5px;\r\n  padding: 5px 10px;\r\n  display: inline-block;\r\n  font-weight: bold;\r\n  color: #fff;\r\n  margin-top: 10px;\r\n  cursor: pointer;\r\n  user-select: none;\r\n  transition: 0.3s;\r\n}\r\n.orderhost-banner .discount-box:hover {\r\n  background: rgba(255,255,255,0.3);\r\n}\r\n\r\n\/* \ud83d\udd14 \u067e\u06cc\u0627\u0645 \u06a9\u067e\u06cc \u0645\u0648\u0641\u0642 *\/\r\n.copy-toast {\r\n  display: none;\r\n  margin: 12px auto 0 auto;\r\n  background: #22bb33;\r\n  color: #fff;\r\n  padding: 10px 16px;\r\n  border-radius: 8px;\r\n  font-size: 14px;\r\n  box-shadow: 0 3px 10px rgba(0,0,0,0.15);\r\n  width: fit-content;\r\n  max-width: 90%;\r\n  text-align: center;\r\n  opacity: 0;\r\n  transform: translateY(6px);\r\n  transition: opacity 0.25s ease, transform 0.25s ease;\r\n}\r\n.copy-toast.show {\r\n  display: inline-block;\r\n  opacity: 1;\r\n  transform: translateY(0);\r\n}\r\n\r\n\/* \ud83d\udcf1 \u062d\u0627\u0644\u062a \u0645\u0648\u0628\u0627\u06cc\u0644 *\/\r\n@media (max-width: 600px) {\r\n  .orderhost-banner {\r\n    flex-direction: column;\r\n    text-align: center;\r\n  }\r\n  .orderhost-banner .right, \r\n  .orderhost-banner .left {\r\n    flex: 1 1 100%;\r\n    height: 200px;\r\n  }\r\n}\r\n<\/style>\r\n\r\n<!-- \ud83d\udce6 \u0628\u0646\u0631 \u062a\u0628\u0644\u06cc\u063a -->\r\n<div id=\"orderhost-banner-container\"><\/div>\r\n<div class=\"copy-toast\" id=\"copy-toast\">\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641 \u06a9\u067e\u06cc \u0634\u062f \u2705<\/div>\r\n\r\n<script>\r\nif (!window.orderhostBannerLoaded) {\r\n  window.orderhostBannerLoaded = true;\r\n\r\n  const adConfig = {\r\n    brandLogo: \"https:\/\/orderhost.net\/blog\/wp-content\/uploads\/2025\/11\/wp-ads.png\", \/\/ \ud83d\udcf8 \u0639\u06a9\u0633 \u06a9\u0627\u0645\u0644 \u0628\u062e\u0634 \u0631\u0627\u0633\u062a\r\n    title: \"\u0647\u0627\u0633\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u06cc\u0631\u0627\u0646 \u0648 \u0622\u0644\u0645\u0627\u0646 - \u0633\u0631\u0639\u062a \u0648 \u0627\u0645\u0646\u06cc\u062a \u0628\u0627\u0644\u0627 \ud83d\ude80\",\r\n    description: \"\u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0648\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627 \u062f\u06cc\u0633\u06a9 NVMe \u0648 \u06a9\u0646\u062a\u0631\u0644\u200c\u067e\u0646\u0644 \u0633\u06cc\u200c\u067e\u0646\u0644\u060c \u0645\u0646\u0627\u0633\u0628 \u0633\u0627\u06cc\u062a\u200c\u0647\u0627\u06cc \u067e\u0631\u062a\u0631\u0627\u0641\u06cc\u06a9 \u0648 \u0641\u0631\u0648\u0634\u06af\u0627\u0647\u06cc.\",\r\n    discountCode: \"WP50\",\r\n    link: \"https:\/\/orderhost.net\/wordpress-hosting\",\r\n    brandColor1: \"#ff9800\",\r\n    brandColor2: \"#f57c00\"\r\n  };\r\n\r\n  const container = document.getElementById(\"orderhost-banner-container\");\r\n  container.innerHTML = `\r\n    <div class=\"orderhost-banner\"\r\n      style=\"--brand-color1: ${adConfig.brandColor1}; --brand-color2: ${adConfig.brandColor2};\"\r\n    >\r\n      <div class=\"right\">\r\n        <img decoding=\"async\" src=\"${adConfig.brandLogo}\" alt=\"OrderHost Banner\">\r\n      <\/div>\r\n      <div class=\"left\">\r\n        <h3>${adConfig.title}<\/h3>\r\n        <p>${adConfig.description}<\/p>\r\n        <a href=\"${adConfig.link}\" class=\"button\" target=\"_blank\">\u0645\u0634\u0627\u0647\u062f\u0647 \u067e\u0644\u0646\u200c\u0647\u0627<\/a>\r\n        <div class=\"discount-box\" id=\"discount-box\">\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641: ${adConfig.discountCode}<\/div>\r\n      <\/div>\r\n    <\/div>\r\n  `;\r\n\r\n  const discountBox = document.getElementById(\"discount-box\");\r\n  const toast = document.getElementById(\"copy-toast\");\r\n\r\n  discountBox.addEventListener(\"click\", () => {\r\n    navigator.clipboard.writeText(adConfig.discountCode).then(() => {\r\n      toast.classList.add(\"show\");\r\n      setTimeout(() => toast.classList.remove(\"show\"), 2000);\r\n    });\r\n  });\r\n}\r\n<\/script>\r\n<\/div><\/h2>\n<h2 style=\"text-align: justify;\">\u0627\u0647\u0645\u06cc\u062a \u0648 \u06a9\u0627\u0631\u0628\u0631\u062f \u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633<\/h2>\n<p style=\"text-align: justify;\">\u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0646\u0647 \u062a\u0646\u0647\u0627 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646\u060c \u0628\u0644\u06a9\u0647 \u0628\u0631\u0627\u06cc \u0647\u0631 \u06a9\u0627\u0631\u0628\u0631\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u062f \u06a9\u0646\u062a\u0631\u0644 \u0639\u0645\u06cc\u0642\u200c\u062a\u0631\u06cc \u0628\u0631 \u0631\u0648\u06cc \u0648\u0628\u200c\u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u062d\u06cc\u0627\u062a\u06cc \u0647\u0633\u062a\u0646\u062f. \u0645\u0647\u0645\u200c\u062a\u0631\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631\u062f\u0647\u0627\u06cc \u0622\u0646\u200c\u0647\u0627 \u0639\u0628\u0627\u0631\u062a\u0646\u062f \u0627\u0632:<\/p>\n<ul style=\"text-align: justify;\">\n<li>\n<p><b>\u0646\u0645\u0627\u06cc\u0634 \u0645\u062d\u062a\u0648\u0627\u06cc \u067e\u0648\u06cc\u0627:<\/b> \u0646\u0645\u0627\u06cc\u0634 \u0639\u0646\u0648\u0627\u0646 \u067e\u0633\u062a\u060c \u0645\u062d\u062a\u0648\u0627\u060c \u062a\u0627\u0631\u06cc\u062e \u0627\u0646\u062a\u0634\u0627\u0631 \u0648 \u062a\u0635\u0648\u06cc\u0631 \u0634\u0627\u062e\u0635.<\/p>\n<\/li>\n<li>\n<p><b>\u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0628\u062e\u0634\u200c\u0647\u0627\u06cc \u0642\u0627\u0644\u0628:<\/b> \u0644\u0648\u062f \u06a9\u0631\u062f\u0646 \u0628\u062e\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0642\u0627\u0644\u0628 \u0645\u0627\u0646\u0646\u062f \u0633\u0631\u0628\u0631\u06af (Header)\u060c \u067e\u0627\u0648\u0631\u0642\u06cc (Footer) \u0648 \u0633\u062a\u0648\u0646 \u06a9\u0646\u0627\u0631\u06cc (Sidebar).<\/p>\n<\/li>\n<li>\n<p><b>\u062a\u0639\u0627\u0645\u0644 \u0628\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647:<\/b> \u0630\u062e\u06cc\u0631\u0647\u060c \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0648 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0648 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0648\u0628\u200c\u0633\u0627\u06cc\u062a.<\/p>\n<\/li>\n<li>\n<p><b>\u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0648 \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627:<\/b> \u0628\u0631\u0631\u0633\u06cc \u0648\u0636\u0639\u06cc\u062a \u0648\u0631\u0648\u062f \u06a9\u0627\u0631\u0628\u0631\u060c \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc.<\/p>\n<\/li>\n<li>\n<p><b>\u0633\u0641\u0627\u0631\u0634\u06cc\u200c\u0633\u0627\u0632\u06cc \u0647\u0633\u062a\u0647:<\/b> \u0627\u0641\u0632\u0648\u062f\u0646 \u0627\u0645\u06a9\u0627\u0646\u0627\u062a \u062c\u062f\u06cc\u062f \u06cc\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0639\u0645\u0644\u06a9\u0631\u062f \u0645\u0648\u062c\u0648\u062f \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0632 \u0637\u0631\u06cc\u0642 <b>\u0647\u0648\u06a9\u200c\u0647\u0627 (Hooks)<\/b>.<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0647\u0645\u200c\u062a\u0631\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646<\/h2>\n<p style=\"text-align: justify;\">\u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0647 \u062f\u0633\u062a\u0647\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u062a\u0642\u0633\u06cc\u0645 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f \u06a9\u0647 \u067e\u0631\u06a9\u0627\u0631\u0628\u0631\u062f\u062a\u0631\u06cc\u0646 \u0622\u0646\u200c\u0647\u0627 \u0639\u0628\u0627\u0631\u062a\u0646\u062f \u0627\u0632:<\/p>\n<h3 style=\"text-align: justify;\">\u06f1. \u062a\u0648\u0627\u0628\u0639 \u0646\u0645\u0627\u06cc\u0634 \u0645\u062d\u062a\u0648\u0627 (Inside The Loop)<\/h3>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u062f\u0631 \u062f\u0627\u062e\u0644 <b>\u062d\u0644\u0642\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 (The Loop)<\/b> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f. \u062d\u0644\u0642\u0647\u060c \u0645\u06a9\u0627\u0646\u06cc\u0633\u0645\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0632 \u0622\u0646 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0627\u0632 \u0646\u0648\u0634\u062a\u0647\u200c\u0647\u0627 (\u067e\u0633\u062a\u200c\u0647\u0627) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<table>\n<thead>\n<tr>\n<td>\u062a\u0627\u0628\u0639<\/td>\n<td>\u06a9\u0627\u0631\u0628\u0631\u062f<\/td>\n<td>\u0645\u062b\u0627\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>the_title()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0639\u0646\u0648\u0627\u0646<\/b> \u0646\u0648\u0634\u062a\u0647 \u06cc\u0627 \u0628\u0631\u06af\u0647 \u0641\u0639\u0644\u06cc.<\/td>\n<td><code>&lt;?php the_title(); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>the_content()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0645\u062d\u062a\u0648\u0627\u06cc \u06a9\u0627\u0645\u0644<\/b> \u0646\u0648\u0634\u062a\u0647 \u06cc\u0627 \u0628\u0631\u06af\u0647 \u0641\u0639\u0644\u06cc.<\/td>\n<td><code>&lt;?php the_content(); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>the_permalink()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0644\u06cc\u0646\u06a9<\/b> \u0646\u0648\u0634\u062a\u0647 \u06cc\u0627 \u0628\u0631\u06af\u0647 \u0641\u0639\u0644\u06cc.<\/td>\n<td><code>&lt;?php the_permalink(); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>the_post_thumbnail()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u062a\u0635\u0648\u06cc\u0631 \u0634\u0627\u062e\u0635<\/b> \u0646\u0648\u0634\u062a\u0647.<\/td>\n<td><code>&lt;?php the_post_thumbnail( 'medium' ); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>the_excerpt()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u062e\u0644\u0627\u0635\u0647 \u06cc\u0627 \u0686\u06a9\u06cc\u062f\u0647<\/b> \u0646\u0648\u0634\u062a\u0647.<\/td>\n<td><code>&lt;?php the_excerpt(); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>the_category()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u062f\u0633\u062a\u0647\u200c\u0628\u0646\u062f\u06cc\u200c\u0647\u0627<\/b>\u06cc \u0646\u0648\u0634\u062a\u0647.<\/td>\n<td><code>&lt;?php the_category(', '); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>the_time()<\/code> \/ <code>the_date()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u062a\u0627\u0631\u06cc\u062e \u0648 \u0632\u0645\u0627\u0646<\/b> \u0627\u0646\u062a\u0634\u0627\u0631 \u0646\u0648\u0634\u062a\u0647.<\/td>\n<td><code>&lt;?php the_time('j F Y'); ?&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"text-align: justify;\">\u06f2. \u062a\u0648\u0627\u0628\u0639 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0628\u062e\u0634\u200c\u0647\u0627\u06cc \u0642\u0627\u0644\u0628<\/h3>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a\u0627\u0631\u062f\u0647\u06cc \u0648 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0627\u062c\u0632\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0642\u0627\u0644\u0628 \u0648 \u0631\u0639\u0627\u06cc\u062a \u0627\u0635\u0644 &#8220;\u0639\u062f\u0645 \u062a\u06a9\u0631\u0627\u0631 \u06a9\u062f&#8221; (<b>DRY<\/b>) \u0636\u0631\u0648\u0631\u06cc \u0647\u0633\u062a\u0646\u062f.<\/p>\n<table>\n<thead>\n<tr>\n<td>\u062a\u0627\u0628\u0639<\/td>\n<td>\u06a9\u0627\u0631\u0628\u0631\u062f<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>get_header()<\/code><\/td>\n<td>\u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0641\u0627\u06cc\u0644 <b>header.php<\/b> (\u0633\u0631\u0628\u0631\u06af).<\/td>\n<\/tr>\n<tr>\n<td><code>get_footer()<\/code><\/td>\n<td>\u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0641\u0627\u06cc\u0644 <b>footer.php<\/b> (\u067e\u0627\u0648\u0631\u0642\u06cc).<\/td>\n<\/tr>\n<tr>\n<td><code>get_sidebar()<\/code><\/td>\n<td>\u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0641\u0627\u06cc\u0644 <b>sidebar.php<\/b> (\u0633\u062a\u0648\u0646 \u06a9\u0646\u0627\u0631\u06cc).<\/td>\n<\/tr>\n<tr>\n<td><code>get_template_part()<\/code><\/td>\n<td>\u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0628\u062e\u0634\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0648 \u06a9\u0648\u0686\u06a9\u200c\u062a\u0631 \u0642\u0627\u0644\u0628 (\u0645\u0627\u0646\u0646\u062f \u0645\u062d\u062a\u0648\u0627\u06cc \u067e\u0633\u062a) \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u062c\u062f\u062f.<\/td>\n<\/tr>\n<tr>\n<td><code>get_search_form()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0641\u0631\u0645 \u062c\u0633\u062a\u062c\u0648\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f<\/b> \u0648\u0631\u062f\u067e\u0631\u0633.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"text-align: justify;\">\u06f3. \u062a\u0648\u0627\u0628\u0639 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u0627\u06cc\u062a<\/h3>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0639\u0645\u0648\u0645\u06cc \u0648\u0628\u200c\u0633\u0627\u06cc\u062a \u062f\u0631 \u0628\u062e\u0634\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0642\u0627\u0644\u0628 (\u0627\u063a\u0644\u0628 \u062f\u0631 \u0633\u0631\u0628\u0631\u06af) \u0628\u0647 \u06a9\u0627\u0631 \u0645\u06cc\u200c\u0631\u0648\u0646\u062f. <b>\u062a\u0627\u0628\u0639 <code>bloginfo()<\/code><\/b> \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0647\u0645\u200c\u062a\u0631\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u062f\u0631 \u0627\u06cc\u0646 \u0632\u0645\u06cc\u0646\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0645\u062e\u062a\u0644\u0641\u06cc \u0631\u0627 \u0628\u0633\u062a\u0647 \u0628\u0647 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u0648\u0631\u0648\u062f\u06cc\u060c \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<table>\n<thead>\n<tr>\n<td>\u062a\u0627\u0628\u0639<\/td>\n<td>\u06a9\u0627\u0631\u0628\u0631\u062f<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>bloginfo('name')<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0639\u0646\u0648\u0627\u0646 \u0648\u0628\u200c\u0633\u0627\u06cc\u062a<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><code>bloginfo('description')<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0645\u0639\u0631\u0641\u06cc \u06a9\u0648\u062a\u0627\u0647 \u0633\u0627\u06cc\u062a<\/b> (\u062a\u06af\u200c\u0644\u0627\u06cc\u0646).<\/td>\n<\/tr>\n<tr>\n<td><code>bloginfo('url')<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0622\u062f\u0631\u0633 \u0648\u0628\u200c\u0633\u0627\u06cc\u062a<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><code>bloginfo('template_url')<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0622\u062f\u0631\u0633 \u067e\u0648\u0634\u0647 \u0642\u0627\u0644\u0628 \u0641\u0639\u0627\u0644<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><code>language_attributes()<\/code><\/td>\n<td>\u0646\u0645\u0627\u06cc\u0634 <b>\u0645\u0634\u062e\u0635\u0627\u062a \u0632\u0628\u0627\u0646<\/b> \u0633\u0627\u06cc\u062a \u062f\u0631 \u062a\u06af <code>&lt;html&gt;<\/code> (\u0636\u0631\u0648\u0631\u06cc \u0628\u0631\u0627\u06cc \u0633\u0626\u0648 \u0648 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f\u0633\u0627\u0632\u06cc).<\/td>\n<\/tr>\n<tr>\n<td><code>wp_head()<\/code> \u0648 <code>wp_footer()<\/code><\/td>\n<td>\u062a\u0648\u0627\u0628\u0639\u06cc \u062d\u06cc\u0627\u062a\u06cc \u06a9\u0647 <b>\u0647\u0648\u06a9\u200c\u0647\u0627\u06cc<\/b> \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0627\u0641\u0632\u0648\u0646\u0647\u200c\u0647\u0627 \u0648 \u0647\u0633\u062a\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0627 \u062f\u0631 \u0628\u062e\u0634\u200c\u0647\u0627\u06cc <code>&lt;head&gt;<\/code> \u0648 \u0642\u0628\u0644 \u0627\u0632 <code>&lt;\/body&gt;<\/code> \u0635\u0641\u062d\u0647 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f (\u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0622\u0646\u200c\u0647\u0627 \u062f\u0631 <code>header.php<\/code> \u0648 <code>footer.php<\/code> \u0636\u0631\u0648\u0631\u06cc \u0627\u0633\u062a).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0622\u0634\u0646\u0627\u06cc\u06cc \u0628\u0627 \u0647\u0648\u06a9\u200c\u0647\u0627 (Hooks): \u0642\u062f\u0631\u062a \u062a\u0648\u0633\u0639\u0647 \u0648\u0631\u062f\u067e\u0631\u0633<\/h2>\n<p style=\"text-align: justify;\">\u0639\u0644\u0627\u0648\u0647 \u0628\u0631 <a href=\"https:\/\/orderhost.net\/blog\/wordpress-functions-guide\/%20\">\u062a\u0648\u0627\u0628\u0639 \u0647\u0633\u062a\u0647 \u0648\u0631\u062f\u067e\u0631\u0633<\/a>\u060c \u0645\u0647\u0645\u200c\u062a\u0631\u06cc\u0646 \u0628\u062e\u0634 \u062f\u0631 \u062a\u0648\u0633\u0639\u0647 \u0642\u0627\u0644\u0628 \u0648 \u0627\u0641\u0632\u0648\u0646\u0647\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <b>\u0647\u0648\u06a9\u200c\u0647\u0627 (Hooks)<\/b> \u0627\u0633\u062a. \u0647\u0648\u06a9\u200c\u0647\u0627 \u0628\u0647 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f \u062a\u0627 \u06a9\u062f\u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u0646\u0642\u0627\u0637 \u062e\u0627\u0635\u06cc \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 <b>&#8220;\u0642\u0644\u0627\u0628&#8221;<\/b> \u06a9\u0646\u0646\u062f\u060c \u0628\u062f\u0648\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u062f \u0627\u0635\u0644\u06cc \u0647\u0633\u062a\u0647 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u0646\u062f. \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0633\u0627\u06cc\u062a \u0631\u0627 \u0647\u0646\u06af\u0627\u0645 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0647\u0633\u062a\u0647\u060c \u0642\u0627\u0644\u0628 \u0648 \u0627\u0641\u0632\u0648\u0646\u0647\u200c\u0647\u0627\u060c <b>\u0627\u06cc\u0645\u0646 \u0648 \u0642\u0627\u0628\u0644 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc<\/b> \u0645\u06cc\u200c\u0633\u0627\u0632\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0647\u0648\u06a9\u200c\u0647\u0627 \u0628\u0647 \u062f\u0648 \u062f\u0633\u062a\u0647 \u0627\u0635\u0644\u06cc \u062a\u0642\u0633\u06cc\u0645 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f:<\/p>\n<ol style=\"text-align: justify;\" start=\"1\">\n<li>\n<p><b>Action Hooks (\u0647\u0648\u06a9\u200c\u0647\u0627\u06cc \u0639\u0645\u0644\u06cc\u0627\u062a\u06cc):<\/b> \u0628\u0631\u0627\u06cc <b>\u0627\u062c\u0631\u0627\u06cc \u06a9\u062f\u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc<\/b> \u062f\u0631 \u06cc\u06a9 \u0646\u0642\u0637\u0647 \u0645\u0634\u062e\u0635. \u0645\u0627\u0646\u0646\u062f \u0627\u0641\u0632\u0648\u062f\u0646 \u06cc\u06a9 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0647 \u0633\u0631\u0628\u0631\u06af \u06cc\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u06cc\u06a9 \u062f\u06a9\u0645\u0647 \u0628\u0647 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631.<\/p>\n<ul>\n<li>\n<p><b>\u062a\u0648\u0627\u0628\u0639 \u0645\u0631\u062a\u0628\u0637:<\/b> <code>add_action()<\/code>, <code>do_action()<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><b>Filter Hooks (\u0647\u0648\u06a9\u200c\u0647\u0627\u06cc \u0641\u06cc\u0644\u062a\u0631\u06cc):<\/b> \u0628\u0631\u0627\u06cc <b>\u062a\u063a\u06cc\u06cc\u0631 \u06cc\u0627 \u0641\u06cc\u0644\u062a\u0631 \u06a9\u0631\u062f\u0646<\/b> \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0642\u0628\u0644 \u0627\u0632 \u0646\u0645\u0627\u06cc\u0634 \u06cc\u0627 \u0630\u062e\u06cc\u0631\u0647. \u0645\u0627\u0646\u0646\u062f \u062a\u063a\u06cc\u06cc\u0631 \u0637\u0648\u0644 \u062e\u0644\u0627\u0635\u0647 \u0646\u0648\u0634\u062a\u0647 \u06cc\u0627 \u0627\u0635\u0644\u0627\u062d \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u067e\u0633\u062a.<\/p>\n<ul>\n<li>\n<p><b>\u062a\u0648\u0627\u0628\u0639 \u0645\u0631\u062a\u0628\u0637:<\/b> <code>add_filter()<\/code>, <code>apply_filters()<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3 style=\"text-align: justify;\">\u0645\u062b\u0627\u0644 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0647\u0648\u06a9\u200c\u0647\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php<\/h3>\n<p style=\"text-align: justify;\">\u0641\u0627\u06cc\u0644 <b><code>functions.php<\/code><\/b> \u062f\u0631 \u067e\u0648\u0634\u0647 \u0647\u0631 \u0642\u0627\u0644\u0628\u060c \u0646\u0642\u0634 \u06cc\u06a9 \u0627\u0641\u0632\u0648\u0646\u0647 \u06a9\u0648\u0686\u06a9 \u0631\u0627 \u0627\u06cc\u0641\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0645\u062d\u0644 \u0627\u0635\u0644\u06cc \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 <b>\u062a\u0648\u0627\u0628\u0639 \u0633\u0641\u0627\u0631\u0634\u06cc (Custom Functions)<\/b> \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0647\u0648\u06a9\u200c\u0647\u0627 \u0627\u0633\u062a.<\/p>\n<p style=\"text-align: justify;\"><b>\u0645\u062b\u0627\u0644 \u0627\u0641\u0632\u0648\u062f\u0646 \u0627\u0633\u062a\u0627\u06cc\u0644 \u0633\u0641\u0627\u0631\u0634\u06cc \u0628\u0627 Action Hook:<\/b><\/p>\n<div class=\"code-block ng-tns-c2640121187-30 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" style=\"text-align: justify;\" data-hveid=\"0\" data-ved=\"0CAAQhtANahcKEwjyxfyowfiPAxUAAAAAHQAAAAAQQA\">\n<div class=\"code-block-decoration header-formatted gds-title-s ng-tns-c2640121187-30 ng-star-inserted\"><span class=\"ng-tns-c2640121187-30\">PHP<\/span><\/p>\n<div class=\"buttons ng-tns-c2640121187-30 ng-star-inserted\">\u00a0<\/div>\n<\/div>\n<div class=\"formatted-code-block-internal-container ng-tns-c2640121187-30\">\n<div class=\"animated-opacity ng-tns-c2640121187-30\">\n<pre class=\"ng-tns-c2640121187-30\"><code class=\"code-container formatted ng-tns-c2640121187-30\" role=\"text\" data-test-id=\"code-content\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title\">my_custom_styles<\/span>() <\/span>{\r\n    wp_enqueue_style( <span class=\"hljs-string\">'custom-style'<\/span>, get_template_directory_uri() . <span class=\"hljs-string\">'\/css\/custom.css'<\/span> );\r\n}\r\nadd_action( <span class=\"hljs-string\">'wp_enqueue_scripts'<\/span>, <span class=\"hljs-string\">'my_custom_styles'<\/span> );\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p style=\"text-align: justify;\"><b>\u0645\u062b\u0627\u0644 \u062a\u063a\u06cc\u06cc\u0631 \u0637\u0648\u0644 \u062e\u0644\u0627\u0635\u0647 \u0646\u0648\u0634\u062a\u0647 \u0628\u0627 Filter Hook:<\/b><\/p>\n<div class=\"code-block ng-tns-c2640121187-31 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" style=\"text-align: justify;\" data-hveid=\"0\" data-ved=\"0CAAQhtANahcKEwjyxfyowfiPAxUAAAAAHQAAAAAQQQ\">\n<div class=\"code-block-decoration header-formatted gds-title-s ng-tns-c2640121187-31 ng-star-inserted\"><span class=\"ng-tns-c2640121187-31\">PHP<\/span><\/p>\n<div class=\"buttons ng-tns-c2640121187-31 ng-star-inserted\">\u00a0<\/div>\n<\/div>\n<div class=\"formatted-code-block-internal-container ng-tns-c2640121187-31\">\n<div class=\"animated-opacity ng-tns-c2640121187-31\">\n<pre class=\"ng-tns-c2640121187-31\"><code class=\"code-container formatted ng-tns-c2640121187-31\" role=\"text\" data-test-id=\"code-content\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title\">custom_excerpt_length<\/span>(<span class=\"hljs-params\"> <span class=\"hljs-variable\">$length<\/span> <\/span>) <\/span>{\r\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-number\">20<\/span>; <span class=\"hljs-comment\">\/\/ \u0637\u0648\u0644 \u062e\u0644\u0627\u0635\u0647 \u0631\u0627 \u0628\u0647 20 \u06a9\u0644\u0645\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc\u200c\u062f\u0647\u062f<\/span>\r\n}\r\nadd_filter( <span class=\"hljs-string\">'excerpt_length'<\/span>, <span class=\"hljs-string\">'custom_excerpt_length'<\/span> );\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634\u200c\u0647\u0627 \u0648 \u0646\u06a9\u0627\u062a \u0633\u0626\u0648 \u062f\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633<\/h2>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u062f\u0627\u0634\u062a\u0646 \u06cc\u06a9 \u0648\u0628\u200c\u0633\u0627\u06cc\u062a \u0628\u0627 \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0627\u0644\u0627\u060c \u0627\u06cc\u0645\u0646 \u0648 \u0633\u0626\u0648 \u0634\u062f\u0647\u060c \u0631\u0639\u0627\u06cc\u062a \u0646\u06a9\u0627\u062a \u0632\u06cc\u0631 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u06a9\u0627\u0631 \u0628\u0627 \u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0636\u0631\u0648\u0631\u06cc \u0627\u0633\u062a:<\/p>\n<h3 style=\"text-align: justify;\">\u06f1. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Child Theme (\u0642\u0627\u0644\u0628 \u0641\u0631\u0632\u0646\u062f)<\/h3>\n<p style=\"text-align: justify;\">\u0647\u0631\u06af\u0632 \u0641\u0627\u06cc\u0644 <code>functions.php<\/code> \u0642\u0627\u0644\u0628 \u0627\u0635\u0644\u06cc \u062e\u0648\u062f \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0646\u06a9\u0646\u06cc\u062f. \u0628\u0627 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0642\u0627\u0644\u0628\u060c \u062a\u0645\u0627\u0645 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0634\u0645\u0627 <b>\u0627\u0632 \u0628\u06cc\u0646 \u062e\u0648\u0627\u0647\u0646\u062f \u0631\u0641\u062a<\/b>. \u0647\u0645\u06cc\u0634\u0647 \u06cc\u06a9 <b>\u0642\u0627\u0644\u0628 \u0641\u0631\u0632\u0646\u062f<\/b> \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0648 \u062a\u0648\u0627\u0628\u0639 \u0633\u0641\u0627\u0631\u0634\u06cc \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 <code>functions.php<\/code> \u0622\u0646 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<h3 style=\"text-align: justify;\">\u06f2. \u0627\u0648\u0644\u0648\u06cc\u062a \u0628\u0627 \u062a\u0648\u0627\u0628\u0639 \u0647\u0633\u062a\u0647<\/h3>\n<p style=\"text-align: justify;\">\u0647\u0645\u06cc\u0634\u0647 \u0627\u0632 \u062a\u0648\u0627\u0628\u0639 \u062f\u0627\u062e\u0644\u06cc \u0648 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0648\u0631\u062f\u067e\u0631\u0633 (\u0645\u0627\u0646\u0646\u062f <code>wp_enqueue_style()<\/code> \u06cc\u0627 <code>the_title()<\/code>) \u0628\u0647 \u062c\u0627\u06cc \u0646\u0648\u0634\u062a\u0646 \u06a9\u062f\u0647\u0627\u06cc \u062e\u0627\u0645 PHP \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u062a\u0636\u0645\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u06a9\u062f \u0634\u0645\u0627 \u0628\u0627 \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc \u0622\u06cc\u0646\u062f\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 <b>\u0633\u0627\u0632\u06af\u0627\u0631<\/b> \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<h3 style=\"text-align: justify;\">\u06f3. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u067e\u06cc\u0634\u0648\u0646\u062f (Prefix) \u0628\u0631\u0627\u06cc \u062a\u0648\u0627\u0628\u0639 \u0633\u0641\u0627\u0631\u0634\u06cc<\/h3>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u062a\u062f\u0627\u062e\u0644 \u0646\u0627\u0645\u200c\u06af\u0630\u0627\u0631\u06cc \u062a\u0648\u0627\u0628\u0639 (Function Collision) \u0628\u0627 \u0627\u0641\u0632\u0648\u0646\u0647\u200c\u0647\u0627 \u06cc\u0627 \u0647\u0633\u062a\u0647 \u0648\u0631\u062f\u067e\u0631\u0633\u060c \u0647\u0645\u06cc\u0634\u0647 \u06cc\u06a9 <b>\u067e\u06cc\u0634\u0648\u0646\u062f \u06cc\u06a9\u062a\u0627<\/b> (\u0645\u062b\u0644\u0627\u064b \u0646\u0627\u0645 \u0645\u062e\u0641\u0641 \u0642\u0627\u0644\u0628 \u06cc\u0627 \u0646\u0627\u0645 \u0634\u0631\u06a9\u062a \u062e\u0648\u062f) \u0628\u0631\u0627\u06cc \u062a\u0645\u0627\u0645 \u062a\u0648\u0627\u0628\u0639 \u0633\u0641\u0627\u0631\u0634\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u062f\u0631 <code>functions.php<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<ul style=\"text-align: justify;\">\n<li>\n<p><b>\u0645\u062b\u0627\u0644:<\/b> \u0628\u0647 \u062c\u0627\u06cc <code>my_styles()<\/code> \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f <code>mytheme_my_styles()<\/code>.<\/p>\n<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">\u06f4. \u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0645\u0646\u0627\u0628\u0639 (Scripts &amp; Styles)<\/h3>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u0641\u0632\u0648\u062f\u0646 \u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc CSS \u0648 JavaScript\u060c \u0647\u0645\u06cc\u0634\u0647 \u0627\u0632 \u062a\u0648\u0627\u0628\u0639 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f <b><code>wp_enqueue_style()<\/code><\/b> \u0648 <b><code>wp_enqueue_script()<\/code><\/b> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639\u060c \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0631\u0639\u0627\u06cc\u062a \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f\u060c \u0628\u0647 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648\u0627\u0628\u0633\u062a\u06af\u06cc\u200c\u0647\u0627 \u0648 \u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u06a9\u0634 \u0645\u0631\u0648\u0631\u06af\u0631 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u06a9\u0647 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u0628\u0631 <b>\u0633\u0631\u0639\u062a \u0633\u0627\u06cc\u062a<\/b> \u0648 <b>\u0633\u0626\u0648<\/b> \u062a\u0623\u062b\u06cc\u0631 \u0645\u06cc\u200c\u06af\u0630\u0627\u0631\u062f.<\/p>\n<h3 style=\"text-align: justify;\">\u06f5. \u0627\u0645\u0646\u06cc\u062a: \u0641\u0631\u0627\u0631 \u0627\u0632 \u0631\u0634\u062a\u0647\u200c\u0647\u0627 (Escaping)<\/h3>\n<p style=\"text-align: justify;\">\u0647\u0646\u06af\u0627\u0645 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u06cc\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u06af\u0631\u0641\u062a\u0647 \u0634\u062f\u0647\u200c\u0627\u0646\u062f (\u0645\u0627\u0646\u0646\u062f \u0639\u0646\u0648\u0627\u0646 \u067e\u0633\u062a \u06cc\u0627 \u0645\u062d\u062a\u0648\u0627\u06cc \u0641\u06cc\u0644\u062f\u0647\u0627\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc)\u060c \u0647\u0645\u06cc\u0634\u0647 \u0627\u0632 <b>\u062a\u0648\u0627\u0628\u0639 \u0641\u0631\u0627\u0631 (Escaping Functions)<\/b> \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0627\u0632 \u062d\u0645\u0644\u0627\u062a XSS (Scripting \u0645\u062a\u0642\u0627\u0637\u0639) \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0634\u0648\u062f.<\/p>\n<ul style=\"text-align: justify;\">\n<li>\n<p><b>\u0645\u062b\u0627\u0644:<\/b> \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0645\u062a\u063a\u06cc\u0631\u0647\u0627 \u062f\u0631 \u062a\u06af\u200c\u0647\u0627\u06cc HTML \u0627\u0632 <code>esc_attr()<\/code> \u0648 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0645\u062a\u0646 \u062f\u0631 \u0628\u062f\u0646\u0647 \u0633\u0627\u06cc\u062a \u0627\u0632 <code>esc_html()<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">\u06f6. \u062f\u0642\u062a \u062f\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Query<\/h3>\n<p style=\"text-align: justify;\">\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0627\u0628\u0647\u200c\u062c\u0627 \u0627\u0632 \u062a\u0627\u0628\u0639 <b><code>WP_Query<\/code><\/b> \u0628\u0631\u0627\u06cc \u06a9\u0648\u0626\u0631\u06cc\u200c\u0647\u0627\u06cc \u0627\u0636\u0627\u0641\u06cc \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0633\u0627\u06cc\u062a \u0631\u0627 \u06a9\u064f\u0646\u062f \u06a9\u0646\u062f. \u0647\u0645\u06cc\u0634\u0647 \u0633\u0639\u06cc \u06a9\u0646\u06cc\u062f \u0627\u0632 \u06a9\u0648\u0626\u0631\u06cc \u0627\u0635\u0644\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 (Main Query) \u0646\u0647\u0627\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0631\u0627 \u0628\u0628\u0631\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633\u060c \u062f\u0631\u0648\u0627\u0632\u0647\u200c\u0627\u06cc \u0628\u0647 \u0633\u0648\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc\u200c\u0633\u0627\u0632\u06cc \u0646\u0627\u0645\u062d\u062f\u0648\u062f \u0648 \u062a\u0648\u0633\u0639\u0647 \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0648\u0628\u200c\u0633\u0627\u06cc\u062a\u200c\u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633\u06cc \u0647\u0633\u062a\u0646\u062f. \u0628\u0627 \u062a\u0633\u0644\u0637 \u0628\u0631 \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0648 \u0631\u0639\u0627\u06cc\u062a \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0642\u0627\u0644\u0628\u200c\u0647\u0627 \u0648 \u0627\u0641\u0632\u0648\u0646\u0647\u200c\u0647\u0627\u06cc \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u060c \u0627\u0645\u0646 \u0648 \u0628\u0647\u06cc\u0646\u0647\u200c\u0627\u06cc \u0628\u0633\u0627\u0632\u06cc\u062f.<\/p>\n<hr \/>\n<div id=\"model-response-message-contentr_0e00bc1b1c7de00f\" class=\"markdown markdown-main-panel stronger enable-updated-hr-color\" dir=\"rtl\">\n<p style=\"text-align: justify;\">\u0627\u0644\u0628\u062a\u0647! \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0647 \u0645\u0639\u0631\u0641\u06cc \u0648 \u0628\u0631\u0631\u0633\u06cc \u062a\u0648\u0627\u0628\u0639 \u06a9\u0644\u06cc\u062f\u06cc \u0648 \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0648\u0631\u062f\u067e\u0631\u0633\u060c \u0628\u0647\u200c\u0648\u06cc\u0698\u0647 \u062f\u0631 \u062d\u0648\u0632\u0647\u200c\u0647\u0627\u06cc <b>\u062a\u0639\u0627\u0645\u0644 \u0628\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647<\/b> \u0648 <b>\u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646<\/b> \u0645\u06cc\u200c\u067e\u0631\u062f\u0627\u0632\u06cc\u0645. \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0642\u0627\u0644\u0628 \u0648 \u0627\u0641\u0632\u0648\u0646\u0647 \u06a9\u0647 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u06a9\u0646\u062a\u0631\u0644 \u0639\u0645\u06cc\u0642 \u0628\u0631 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0648 \u0645\u0646\u0637\u0642 \u0633\u0627\u06cc\u062a \u062f\u0627\u0631\u0646\u062f\u060c \u0636\u0631\u0648\u0631\u06cc \u0647\u0633\u062a\u0646\u062f.<\/p>\n<h2 style=\"text-align: justify;\">\u062a\u0648\u0627\u0628\u0639 \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0648\u0631\u062f\u067e\u0631\u0633: \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \ud83d\udee0\ufe0f<\/h2>\n<h2 style=\"text-align: justify;\">\u06f1. \u062a\u0648\u0627\u0628\u0639 \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 (Database Interaction)<\/h2>\n<p style=\"text-align: justify;\">\u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0632 \u06a9\u0644\u0627\u0633 <b><code>$wpdb<\/code><\/b> \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u06a9\u0648\u0626\u0631\u06cc\u200c\u0647\u0627\u06cc (Query) \u0633\u0641\u0627\u0631\u0634\u06cc \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MySQL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u06a9\u0644\u0627\u0633 \u06cc\u06a9 \u0644\u0627\u06cc\u0647 \u0627\u0646\u062a\u0632\u0627\u0639\u06cc \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u06a9\u0627\u0631 \u0628\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0627\u06cc\u0645\u0646\u200c\u062a\u0631 \u0648 \u0633\u0627\u0632\u06af\u0627\u0631\u062a\u0631 \u0628\u0627 \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u06cc\u200c\u0633\u0627\u0632\u062f. \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0627\u06cc\u0646 \u06a9\u0644\u0627\u0633 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u062a\u063a\u06cc\u0631 \u0639\u0645\u0648\u0645\u06cc <code>$wpdb<\/code> \u0627\u0645\u06a9\u0627\u0646\u200c\u067e\u0630\u06cc\u0631 \u0627\u0633\u062a.<\/p>\n<table>\n<thead>\n<tr>\n<td>\u062a\u0627\u0628\u0639 (\u0645\u062a\u062f)<\/td>\n<td>\u06a9\u0627\u0631\u0628\u0631\u062f<\/td>\n<td>\u0645\u062b\u0627\u0644 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>get_var()<\/code><\/td>\n<td>\u0628\u0627\u0632\u06cc\u0627\u0628\u06cc <b>\u06cc\u06a9 \u0641\u06cc\u0644\u062f \u062a\u06a9\u06cc<\/b> (\u06cc\u06a9 \u0645\u0642\u062f\u0627\u0631) \u0627\u0632 \u0627\u0648\u0644\u06cc\u0646 \u0633\u0637\u0631 \u0646\u062a\u06cc\u062c\u0647 \u06a9\u0648\u0626\u0631\u06cc.<\/td>\n<td><code>&lt;?php $user_count = $wpdb-&gt;get_var(\"SELECT COUNT(*) FROM $wpdb-&gt;users\"); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>get_row()<\/code><\/td>\n<td>\u0628\u0627\u0632\u06cc\u0627\u0628\u06cc <b>\u06cc\u06a9 \u0633\u0637\u0631 \u06a9\u0627\u0645\u0644<\/b> \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647. \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0646\u062a\u06cc\u062c\u0647 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0622\u0628\u062c\u06a9\u062a \u06cc\u0627 \u0622\u0631\u0627\u06cc\u0647 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f.<\/td>\n<td><code>&lt;?php $post = $wpdb-&gt;get_row(\"SELECT * FROM $wpdb-&gt;posts WHERE ID = 10\"); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>get_col()<\/code><\/td>\n<td>\u0628\u0627\u0632\u06cc\u0627\u0628\u06cc <b>\u06cc\u06a9 \u0633\u062a\u0648\u0646 \u06a9\u0627\u0645\u0644<\/b> \u0627\u0632 \u0646\u062a\u0627\u06cc\u062c \u06a9\u0648\u0626\u0631\u06cc \u062f\u0631 \u0642\u0627\u0644\u0628 \u06cc\u06a9 \u0622\u0631\u0627\u06cc\u0647.<\/td>\n<td><code>&lt;?php $ids = $wpdb-&gt;get_col(\"SELECT ID FROM $wpdb-&gt;posts WHERE post_status = 'publish'\"); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>get_results()<\/code><\/td>\n<td>\u0628\u0627\u0632\u06cc\u0627\u0628\u06cc <b>\u0686\u0646\u062f\u06cc\u0646 \u0633\u0637\u0631<\/b> (\u0686\u0646\u062f \u0646\u062a\u06cc\u062c\u0647) \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062f\u0631 \u0642\u0627\u0644\u0628 \u0622\u0631\u0627\u06cc\u0647\u200c\u0627\u06cc \u0627\u0632 \u0622\u0628\u062c\u06a9\u062a\u200c\u0647\u0627 \u06cc\u0627 \u0622\u0631\u0627\u06cc\u0647\u200c\u0647\u0627\u06cc \u0645\u0639\u0645\u0648\u0644\u06cc.<\/td>\n<td><code>&lt;?php $users = $wpdb-&gt;get_results(\"SELECT ID, user_login FROM $wpdb-&gt;users LIMIT 5\"); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>insert()<\/code><\/td>\n<td><b>\u062f\u0631\u062c \u062f\u0627\u062f\u0647<\/b> \u062f\u0631 \u06cc\u06a9 \u062c\u062f\u0648\u0644 \u0645\u0634\u062e\u0635. \u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 \u0627\u06cc\u0645\u0646\u200c\u062a\u0631 \u0627\u0632 \u0646\u0648\u0634\u062a\u0646 \u0645\u0633\u062a\u0642\u06cc\u0645 \u06a9\u0648\u0626\u0631\u06cc <code>INSERT<\/code> \u0627\u0633\u062a.<\/td>\n<td><code>&lt;?php $wpdb-&gt;insert( 'mytable', array( 'name' =&gt; 'Ali', 'age' =&gt; 30 ) ); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>update()<\/code><\/td>\n<td><b>\u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627<\/b> \u062f\u0631 \u06cc\u06a9 \u062c\u062f\u0648\u0644 \u0645\u0634\u062e\u0635 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0634\u0631\u0627\u06cc\u0637 \u062e\u0627\u0635.<\/td>\n<td><code>&lt;?php $wpdb-&gt;update( 'mytable', array( 'age' =&gt; 31 ), array( 'name' =&gt; 'Ali' ) ); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>delete()<\/code><\/td>\n<td><b>\u062d\u0630\u0641 \u062f\u0627\u062f\u0647\u200c\u0647\u0627<\/b> \u0627\u0632 \u06cc\u06a9 \u062c\u062f\u0648\u0644.<\/td>\n<td><code>&lt;?php $wpdb-&gt;delete( 'mytable', array( 'name' =&gt; 'Ali' ) ); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>prepare()<\/code><\/td>\n<td><b>\u0627\u06cc\u0645\u0646\u200c\u0633\u0627\u0632\u06cc \u06a9\u0648\u0626\u0631\u06cc\u200c\u0647\u0627<\/b>. \u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u062d\u0645\u0644\u0627\u062a SQL Injection \u0636\u0631\u0648\u0631\u06cc \u0627\u0633\u062a \u0648 \u0645\u062a\u063a\u06cc\u0631\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u06cc\u0645\u0646 \u062f\u0631\u0648\u0646 \u06a9\u0648\u0626\u0631\u06cc \u0642\u0631\u0627\u0631 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/td>\n<td><code>&lt;?php $wpdb-&gt;prepare( \"SELECT ID FROM $wpdb-&gt;posts WHERE post_title = %s\", $title ); ?&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"text-align: justify;\">\u0646\u06a9\u062a\u0647 \u06a9\u0644\u06cc\u062f\u06cc \u0628\u0631\u0627\u06cc \u0627\u0645\u0646\u06cc\u062a:<\/h3>\n<p style=\"text-align: justify;\">\u0647\u0645\u06cc\u0634\u0647 \u0642\u0628\u0644 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u06a9\u0648\u0626\u0631\u06cc\u060c \u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062a\u062f <b><code>$wpdb-&gt;prepare()<\/code><\/b> \u06cc\u0627 <b>\u062a\u0648\u0627\u0628\u0639 \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc (Validation\/Sanitization)<\/b> \u0627\u06cc\u0645\u0646\u200c\u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0645\u0647\u0645\u200c\u062a\u0631\u06cc\u0646 \u0627\u0635\u0644 \u0627\u0645\u0646\u06cc\u062a\u06cc \u062f\u0631 \u06a9\u0627\u0631 \u0628\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0633\u062a.<\/p>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u06f2. \u062a\u0648\u0627\u0628\u0639 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 (User Management)<\/h2>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f \u06a9\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0631\u0627 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0648\u0636\u0639\u06cc\u062a \u0648\u0631\u0648\u062f \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0633\u0637\u0648\u062d \u062f\u0633\u062a\u0631\u0633\u06cc \u0631\u0627 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<table>\n<thead>\n<tr>\n<td>\u062a\u0627\u0628\u0639<\/td>\n<td>\u06a9\u0627\u0631\u0628\u0631\u062f<\/td>\n<td>\u0645\u062b\u0627\u0644 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>is_user_logged_in()<\/code><\/td>\n<td>\u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u0622\u06cc\u0627 \u06a9\u0627\u0631\u0628\u0631 \u0641\u0639\u0644\u06cc <b>\u0648\u0627\u0631\u062f \u0634\u062f\u0647<\/b> \u0627\u0633\u062a \u06cc\u0627 \u062e\u06cc\u0631. (\u062e\u0631\u0648\u062c\u06cc: <code>true<\/code> \u06cc\u0627 <code>false<\/code>)<\/td>\n<td><code>&lt;?php if ( is_user_logged_in() ) { \/\/ \u0646\u0645\u0627\u06cc\u0634 \u0645\u062d\u062a\u0648\u0627\u06cc \u0648\u06cc\u0698\u0647 } ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>get_current_user_id()<\/code><\/td>\n<td><b>\u0634\u0646\u0627\u0633\u0647 (ID)<\/b> \u06a9\u0627\u0631\u0628\u0631 \u0648\u0627\u0631\u062f \u0634\u062f\u0647 \u0641\u0639\u0644\u06cc \u0631\u0627 \u0628\u0631\u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f.<\/td>\n<td><code>&lt;?php $user_id = get_current_user_id(); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>wp_get_current_user()<\/code><\/td>\n<td><b>\u0622\u0628\u062c\u06a9\u062a \u06a9\u0627\u0631\u0628\u0631 (User Object)<\/b> \u0648\u0627\u0631\u062f \u0634\u062f\u0647 \u0641\u0639\u0644\u06cc \u0631\u0627 \u0628\u0631\u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f \u06a9\u0647 \u0634\u0627\u0645\u0644 \u062a\u0645\u0627\u0645 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u0648\u0633\u062a.<\/td>\n<td><code>&lt;?php $current_user = wp_get_current_user(); echo $current_user-&gt;display_name; ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>get_userdata( $user_id )<\/code><\/td>\n<td>\u0628\u0627\u0632\u06cc\u0627\u0628\u06cc <b>\u0622\u0628\u062c\u06a9\u062a \u06a9\u0627\u0631\u0628\u0631<\/b> \u0628\u0631 \u0627\u0633\u0627\u0633 \u0634\u0646\u0627\u0633\u0647 (ID) \u0627\u0648.<\/td>\n<td><code>&lt;?php $user = get_userdata( 5 ); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>user_can( $user_id, $capability )<\/code><\/td>\n<td>\u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u0622\u06cc\u0627 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631\u060c <b>\u0642\u0627\u0628\u0644\u06cc\u062a (Capability)<\/b> \u0645\u0634\u062e\u0635\u06cc (\u0645\u0627\u0646\u0646\u062f \u0627\u0646\u062a\u0634\u0627\u0631 \u067e\u0633\u062a\u060c \u0645\u062f\u06cc\u0631\u06cc\u062a \u0627\u0641\u0632\u0648\u0646\u0647\u200c\u0647\u0627) \u0631\u0627 \u062f\u0627\u0631\u062f \u06cc\u0627 \u062e\u06cc\u0631.<\/td>\n<td><code>&lt;?php if ( user_can( $user_id, 'manage_options' ) ) { \/\/ ... } ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>wp_logout_url()<\/code> \/ <code>wp_login_url()<\/code><\/td>\n<td><b>\u0644\u06cc\u0646\u06a9 \u062e\u0631\u0648\u062c\/\u0648\u0631\u0648\u062f<\/b> \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u0631\u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f.<\/td>\n<td><code>&lt;?php echo wp_logout_url( home_url() ); ?&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"text-align: justify;\">\u06a9\u0627\u0631\u0628\u0631\u062f \u062a\u0648\u0627\u0628\u0639 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0627\u0631\u0628\u0631:<\/h3>\n<p style=\"text-align: justify;\">\u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639\u060c \u0645\u062d\u062a\u0648\u0627\u06cc \u0633\u0627\u06cc\u062a \u0631\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0646\u0642\u0634 \u06cc\u0627 \u0648\u0636\u0639\u06cc\u062a \u0648\u0631\u0648\u062f \u06a9\u0627\u0631\u0628\u0631 <b>\u0634\u062e\u0635\u06cc\u200c\u0633\u0627\u0632\u06cc<\/b> \u06a9\u0646\u06cc\u062f. \u0645\u062b\u0644\u0627\u064b\u060c \u06cc\u06a9 \u062f\u06a9\u0645\u0647 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0641\u0642\u0637 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u0627\u0646 (Administrator) \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f\u060c \u06cc\u0627 \u0645\u062d\u062a\u0648\u0627\u06cc \u062e\u0627\u0635\u06cc \u0641\u0642\u0637 \u0628\u0631\u0627\u06cc \u0645\u0634\u062a\u0631\u06a9\u06cc\u0646 (Subscriber) \u0642\u0627\u0628\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0628\u0627\u0634\u062f.<\/p>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u06f3. \u062a\u0648\u0627\u0628\u0639 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0648 \u06af\u0632\u06cc\u0646\u0647\u200c\u0647\u0627 (Options and Settings)<\/h2>\n<p style=\"text-align: justify;\">\u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0632 \u062c\u062f\u0648\u0644 <code>wp_options<\/code> \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0639\u0645\u0648\u0645\u06cc\u060c \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0627\u0641\u0632\u0648\u0646\u0647\u200c\u0647\u0627 \u0648 \u0642\u0627\u0644\u0628\u200c\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0628\u0647 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f \u06a9\u0647 \u0628\u0627 \u0627\u06cc\u0646 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062a\u0639\u0627\u0645\u0644 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<table>\n<thead>\n<tr>\n<td>\u062a\u0627\u0628\u0639<\/td>\n<td>\u06a9\u0627\u0631\u0628\u0631\u062f<\/td>\n<td>\u0645\u062b\u0627\u0644 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>get_option( $option_name )<\/code><\/td>\n<td>\u0628\u0627\u0632\u06cc\u0627\u0628\u06cc <b>\u0645\u0642\u062f\u0627\u0631<\/b> \u06cc\u06a9 \u06af\u0632\u06cc\u0646\u0647 \u0645\u0634\u062e\u0635 \u0627\u0632 \u062c\u062f\u0648\u0644 <code>wp_options<\/code>.<\/td>\n<td><code>&lt;?php $site_title = get_option( 'blogname' ); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>update_option( $option_name, $new_value )<\/code><\/td>\n<td><b>\u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc<\/b> \u0645\u0642\u062f\u0627\u0631 \u06cc\u06a9 \u06af\u0632\u06cc\u0646\u0647. \u0627\u06af\u0631 \u06af\u0632\u06cc\u0646\u0647 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u0622\u0646 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/td>\n<td><code>&lt;?php update_option( 'custom_color', '#ff0000' ); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>add_option( $option_name, $value )<\/code><\/td>\n<td><b>\u0627\u0641\u0632\u0648\u062f\u0646<\/b> \u06cc\u06a9 \u06af\u0632\u06cc\u0646\u0647 \u062c\u062f\u06cc\u062f \u0628\u0647 \u062c\u062f\u0648\u0644 <code>wp_options<\/code>. \u0627\u06af\u0631 \u0627\u0632 \u0642\u0628\u0644 \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u06a9\u0627\u0631\u06cc \u0627\u0646\u062c\u0627\u0645 \u0646\u0645\u06cc\u200c\u062f\u0647\u062f.<\/td>\n<td><code>&lt;?php add_option( 'default_setting', 'yes' ); ?&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>delete_option( $option_name )<\/code><\/td>\n<td><b>\u062d\u0630\u0641<\/b> \u06cc\u06a9 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0632 \u062c\u062f\u0648\u0644 <code>wp_options<\/code>.<\/td>\n<td><code>&lt;?php delete_option( 'old_setting' ); ?&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0628\u0647 \u0648\u06cc\u0698\u0647 \u062f\u0631 \u062a\u0648\u0633\u0639\u0647 <b>\u0627\u0641\u0632\u0648\u0646\u0647\u200c\u0647\u0627<\/b> \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0633\u0641\u0627\u0631\u0634\u06cc \u0627\u0641\u0632\u0648\u0646\u0647\u060c \u0628\u0633\u06cc\u0627\u0631 \u062d\u06cc\u0627\u062a\u06cc \u0647\u0633\u062a\u0646\u062f \u0648 \u0631\u0648\u0634 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0631\u0627\u06cc \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0645\u06cc\u200c\u0628\u0627\u0634\u0646\u062f.<\/p>\n<h2 style=\"text-align: justify;\">\u062e\u0644\u0627\u0635\u0647: \u062a\u0648\u0633\u0639\u0647 \u0628\u0627 \u062a\u0648\u0627\u0628\u0639\u060c \u0646\u0647 \u0628\u0627 \u06a9\u062f\u0647\u0627\u06cc \u062e\u0627\u0645<\/h2>\n<p style=\"text-align: justify;\">\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0648\u0627\u0628\u0639 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0648\u0631\u062f\u067e\u0631\u0633 \u062f\u0631 \u0647\u0631 \u0633\u0647 \u062d\u0648\u0632\u0647 (\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u060c \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0648 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a) \u0628\u0647 \u0634\u0645\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u06a9\u062f \u0634\u0645\u0627:<\/p>\n<ol style=\"text-align: justify;\" start=\"1\">\n<li>\n<p><b>\u0627\u0645\u0646 \u0627\u0633\u062a:<\/b> \u0628\u0647\u200c\u0648\u06cc\u0698\u0647 \u062f\u0631 \u0628\u0631\u0627\u0628\u0631 \u062d\u0645\u0644\u0627\u062a <a href=\"https:\/\/owasp.org\/www-community\/attacks\/SQL_Injection\" target=\"_blank\" rel=\"noopener\">SQL Injection<\/a>.<\/p>\n<\/li>\n<li>\n<p><b>\u0642\u0627\u0628\u0644 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0627\u0633\u062a:<\/b> \u0628\u0627 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc\u200c\u0647\u0627\u06cc \u0647\u0633\u062a\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0633\u0627\u0632\u06af\u0627\u0631 \u0628\u0627\u0642\u06cc \u0645\u06cc\u200c\u0645\u0627\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><b>\u0628\u0647\u06cc\u0646\u0647 \u0627\u0633\u062a:<\/b> \u0627\u0632 \u0645\u06a9\u0627\u0646\u06cc\u0633\u0645\u200c\u0647\u0627\u06cc \u06a9\u0634\u06cc\u0646\u06af \u0648 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0647\u0631\u0647 \u0645\u06cc\u200c\u0628\u0631\u062f.<\/p>\n<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u0647\u060c \u0647\u0645\u06cc\u0634\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0645\u0646\u0637\u0642 \u0633\u0641\u0627\u0631\u0634\u06cc \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u0642\u0627\u0644\u0628 <b>\u062a\u0648\u0627\u0628\u0639 \u0645\u062c\u0632\u0627<\/b> \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f\u0647 \u0648 \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 <b>\u0647\u0648\u06a9\u200c\u0647\u0627<\/b> \u0628\u0647 \u0647\u0633\u062a\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u062a\u0635\u0644 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0647 \u0645\u0639\u0646\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062d\u062f\u0627\u06a9\u062b\u0631\u06cc \u0627\u0632 \u067e\u062a\u0627\u0646\u0633\u06cc\u0644 \u0648 \u0645\u0639\u0645\u0627\u0631\u06cc \u0645\u062a\u0646\u200c\u0628\u0627\u0632 \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0633\u062a.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u062a\u0648\u0627\u0628\u0639 \u0648\u0631\u062f\u067e\u0631\u0633 \u0686\u06cc\u0633\u062a\u061f \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u06a9\u0627\u0645\u0644 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0648 \u0633\u0641\u0627\u0631\u0634\u06cc\u200c \u0633\u0627\u0632\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 (WordPress) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062d\u0628\u0648\u0628\u200c\u062a\u0631\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u062d\u062a\u0648\u0627 (CMS) \u062f\u0631 \u062c\u0647\u0627\u0646\u060c \u0628\u0631 \u067e\u0627\u06cc\u0647 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0646\u0648\u06cc\u0633\u06cc PHP \u0648 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u06af\u0633\u062a\u0631\u062f\u0647 \u0627\u0632 \u062a\u0648\u0627\u0628\u0639 (Functions) \u0628\u0646\u0627 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639\u060c \u0642\u0637\u0639\u0647 \u06a9\u062f\u0647\u0627\u06cc \u0627\u0632 \u067e\u06cc\u0634 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647\u200c\u0627\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0646\u0648\u06cc\u0633\u0627\u0646 \u0648 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f \u062a\u0627 \u0628\u062f\u0648\u0646 &hellip;<\/p>\n","protected":false},"author":3,"featured_media":24086,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6407],"tags":[],"class_list":["post-23613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/posts\/23613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/comments?post=23613"}],"version-history":[{"count":9,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/posts\/23613\/revisions"}],"predecessor-version":[{"id":24097,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/posts\/23613\/revisions\/24097"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/media\/24086"}],"wp:attachment":[{"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/media?parent=23613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/categories?post=23613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/tags?post=23613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}