{"id":1289,"date":"2023-02-20T19:13:24","date_gmt":"2023-02-20T16:13:24","guid":{"rendered":"https:\/\/ar.wordpress.org\/support\/topic\/%d8%aa%d8%b1%d8%ac%d9%85%d8%a9-filter-%d9%81%d9%8a-%d8%b3%d9%8a%d8%a7%d9%82-plugin-api-hooks\/"},"modified":"2023-02-20T19:13:24","modified_gmt":"2023-02-20T16:13:24","slug":"%d8%aa%d8%b1%d8%ac%d9%85%d8%a9-filter-%d9%81%d9%8a-%d8%b3%d9%8a%d8%a7%d9%82-plugin-api-hooks","status":"publish","type":"topic","link":"https:\/\/ar.wordpress.org\/support\/topic\/%d8%aa%d8%b1%d8%ac%d9%85%d8%a9-filter-%d9%81%d9%8a-%d8%b3%d9%8a%d8%a7%d9%82-plugin-api-hooks\/","title":{"rendered":"\u062a\u0631\u062c\u0645\u0629 Filter \u0641\u064a \u0633\u064a\u0627\u0642 Plugin API\/Hooks"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u0641\u064a \u0633\u064a\u0627\u0642 Plugin API\/Hooks \u064a\u062a\u0645 <a href=\"https:\/\/developer.wordpress.org\/plugins\/hooks\/filters\/\">\u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0645\u0635\u0637\u0644\u062d<\/a> \u0643\u0627\u0644\u062a\u0627\u0644\u064a:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Filters<\/strong> are one of the two types of <a href=\"https:\/\/developer.wordpress.org\/plugins\/hooks\/\">Hooks<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They provide a way for functions to modify data during the execution of WordPress Core, plugins, and themes.&nbsp;They are the counterpart to <a href=\"https:\/\/developer.wordpress.org\/plugins\/hooks\/actions\/\">Actions<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike <a href=\"https:\/\/developer.wordpress.org\/plugins\/hooks\/actions\/\">Actions<\/a>, filters are meant to work in an isolated manner, and should never have <a href=\"https:\/\/en.wikipedia.org\/wiki\/Side_effect_(computer_science)\">side effects<\/a> such as affecting global variables and output. Filters expect to have something returned back to them.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u0645\u0627 \u0647\u064a \u0628\u0631\u0623\u064a\u0643\u0645 \u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0627\u0644\u0623\u0646\u0633\u0628\u061f<br \/>\u0644\u0627 \u062a\u0648\u062c\u062f \u062a\u0631\u062c\u0645\u0629 \u0645\u064f\u062a\u0641\u0642 \u0639\u0644\u064a\u0647\u0627 \u0628\u0627\u0644\u0643\u0627\u0645\u0644 \u062d\u062a\u0649 \u0627\u0644\u0622\u0646.<br \/><br \/>\u0627\u0644\u0645\u0642\u062a\u0631\u062d \u0627\u0644\u062d\u0627\u0644\u064a \u0647\u0648 \u062a\u0631\u062c\u0645\u062a\u0647\u0627 &#8220;\u062e\u064f\u0637\u0627\u0641 \u0627\u0644\u062a\u0639\u062f\u064a\u0644&#8221;\u060c \u0644\u0623\u0646 \u0647\u0630\u0647 \u0645\u064a\u0632\u0629 \u062a\u0645\u0643\u0646 \u0627\u0644\u0645\u0637\u0648\u0631\u064a\u0646 \u0645\u0646 \u0625\u0636\u0627\u0641\u0629 \u062f\u0627\u0644\u0629 \u0628\u0631\u0645\u062c\u064a\u0629 \u0644\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0646\u0627\u062a\u062c\u0629 \u0639\u0646 \u062f\u0648\u0627\u0644 \u0623\u062e\u0631\u0649.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0645\u062b\u0627\u0644: \u062e\u064f\u0637\u0627\u0641 \u0627\u0644\u062a\u0639\u062f\u064a\u0644 document_title_separator<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0645\u0627 \u0631\u0623\u064a\u0643\u0645\u061f<\/p>\n","protected":false},"template":"","class_list":["post-1289","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ar.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ar.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ar.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ar.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1289\/revisions"}],"wp:attachment":[{"href":"https:\/\/ar.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}