{"id":11893,"date":"2022-08-25T15:55:02","date_gmt":"2022-08-25T12:55:02","guid":{"rendered":"https:\/\/elzero.org\/?p=11893"},"modified":"2023-10-26T11:56:47","modified_gmt":"2023-10-26T08:56:47","slug":"wordpress-hide-update-notification-in-admin-panel","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/wordpress-hide-update-notification-in-admin-panel\/","title":{"rendered":"\u0625\u062e\u0641\u0627\u0621 \u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u062a\u062d\u062f\u064a\u062b \u0641\u064a \u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646"},"content":{"rendered":"<div class=\"text\">\r\n\u0628\u0648\u0627\u0633\u0637\u0629 \u0647\u0630\u0627 \u0627\u0644 Code \u062a\u0633\u062a\u0637\u064a\u0639 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u0646\u0628\u064a\u0647\u0627\u062a \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0648\u062c\u0648\u062f \u0625\u0635\u062f\u0627\u0631 \u062c\u062f\u064a\u062f \u0641\u064a \u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646\r\n<\/div>\r\n\r\n<script type=\"text\/plain\" class=\"language-php\">\r\n\/\/ Hide Update Notification To Users\r\nfunction hide_update_notify_for_users() {\r\n  if (!current_user_can('update_core')) {\r\n    remove_action('admin_notices', 'update_nag', 3);\r\n  }\r\n}\r\nadd_action('admin_head', 'hide_update_notify_for_users', 1);\r\n<\/script>\r\n\r\n<div class=\"text\">\r\n\u0647\u0630\u0627 \u0627\u0644\u0633\u0637\u0631 \u0645\u0639\u0646\u0627\u0647 \u0623\u0646 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645  \u0644\u0627 \u062a\u0648\u062c\u062f \u0644\u062f\u064a\u0647 \u062a\u0631\u0627\u062e\u064a\u0635 \u0644\u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0646\u0638\u0627\u0645 &#8220;Update Code&#8221; \u0644\u0630\u0644\u0643 \u0628\u0639\u062f\u0647\u0627 \u0646\u0642\u0648\u0645 \u0628\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062a\u0646\u0628\u064a\u0647 \u0627\u0644\u062e\u0627\u0635 \u0628\u0627\u0644\u062a\u062d\u062f\u064a\u062b\r\n<\/div>\r\n\r\n<script type=\"text\/plain\" class=\"language-php\">\r\n!current_user_can('update_core')\r\n<\/script>\r\n\r\n<h3>\u0642\u0628\u0644 \u0627\u0644 Code<\/h3>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/elzero.org\/old\/wp-content\/uploads\/2022\/08\/before-function.jpg\" alt=\"\" \/>\r\n\r\n<h3>\u0628\u0639\u062f \u0627\u0644 Code<\/h3>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/elzero.org\/old\/wp-content\/uploads\/2022\/08\/after-function.jpg\" alt=\"\" \/>","protected":false},"excerpt":{"rendered":"<p>\u062a\u0633\u062a\u0637\u064a\u0639 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u0646\u0628\u064a\u0647\u0627\u062a \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0648\u062c\u0648\u062f \u0625\u0635\u062f\u0627\u0631 \u062c\u062f\u064a\u062f \u0641\u064a \u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[526],"tags":[1401,1400,1117,1404,1402,1403,1149,1118],"class_list":["post-11893","post","type-post","status-publish","format-standard","hentry","category-wordpress-tutorials","tag-notification","tag-update","tag-wordpress","tag-1404","tag-1402","tag-1403","tag-1149","tag-1118"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=11893"}],"version-history":[{"count":3,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11893\/revisions"}],"predecessor-version":[{"id":13918,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11893\/revisions\/13918"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=11893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=11893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=11893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}