{"id":312,"date":"2021-11-11T23:34:52","date_gmt":"2021-11-11T20:04:52","guid":{"rendered":"https:\/\/mjkhajeh.ir\/?p=312"},"modified":"2021-11-11T23:34:52","modified_gmt":"2021-11-11T20:04:52","slug":"why-dollar-isnt-in-wordpress-jquery","status":"publish","type":"post","link":"https:\/\/mjkhajeh.ir\/blog\/why-dollar-isnt-in-wordpress-jquery\/","title":{"rendered":"\u0686\u0631\u0627 \u062a\u0627\u0628\u0639 $ \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 \u0646\u06cc\u0633\u062a\u061f"},"content":{"rendered":"<!-- wp:themify-builder\/canvas \/-->\n\n\n<p class=\"wp-block-paragraph\">\u0633\u0644\u0627\u0645<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627\u0634\u06cc\u062f \u0627\u062d\u062a\u0645\u0627\u0644\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0648\u062f\u0647 \u06a9\u0647 \u06a9\u062f jQuery \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f. \u0645\u0639\u0645\u0648\u0644\u0627 \u0627\u0648\u0646\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0641\u0639\u0647 \u0627\u0648\u0644\u0634\u0648\u0646 \u0647\u0633\u062a \u06a9\u0647 \u062a\u0648\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u06a9\u062f <a href=\"https:\/\/jquery.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">jQuery<\/a> \u0645\u06cc\u0646\u0648\u06cc\u0633\u0646 \u0627\u0632 \u062a\u0627\u0628\u0639 $ \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u0646 \u0628\u0627 \u0627\u0631\u0648\u0631 \u0631\u0648\u0628\u0631\u0648 \u0645\u06cc\u0634\u0646. \u062e\u0628 \u0631\u0627\u0647 \u062d\u0644 \u0627\u06cc\u0646 \u0645\u0634\u06a9\u0644 \u062a\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u0647\u0633\u062a \u0648 \u0631\u0627\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0647\u0645 \u062f\u0627\u0631\u0647. \u0622\u062e\u0631 \u067e\u0633\u062a \u0686\u0646\u062a\u0627 \u0627\u0632 \u0631\u0627\u0647 \u062d\u0644 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0647\u0633\u062a \u0631\u0648 \u0645\u0639\u0631\u0641\u06cc \u0645\u06cc\u06a9\u0646\u0645. \u0648\u0644\u06cc \u0628\u062d\u062b \u0627\u0635\u0644\u06cc \u0627\u06cc\u0646 \u067e\u0633\u062a \u062f\u0631\u0628\u0627\u0631\u0647 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0686\u0631\u0627 \u062a\u0627\u0628\u0639 $ \u0631\u0648 \u0646\u062f\u0627\u0631\u06cc\u0645&#8230;<\/p>\n\n\n\n<div class=\"wp-block-image wp-duotone-000000-00a5ff-1\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/jquery.com\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"243\" height=\"66\" src=\"https:\/\/mjkhajeh.ir\/wp-content\/uploads\/2021\/11\/logo-jquery-1.png\" alt=\"jQuery\" class=\"wp-image-320\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\">\u0686\u0631\u0627 \u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 $ \u0646\u06cc\u0633\u062a\u061f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 \u062f\u0631 \u062d\u0642\u06cc\u0642\u062a \u062a\u0648\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0647\u0633\u062a. \u0627\u0645\u0627 \u062e\u0648\u062f jQuery \u06cc\u0647 \u062a\u0627\u0628\u0639 \u062f\u0627\u0631\u0647 \u0628\u0647 \u0646\u0627\u0645 jQuery.noConflict() \u06a9\u0647 \u0628\u0627\u0639\u062b \u0645\u06cc\u0634\u0647 $ \u0627\u0632 \u0628\u06cc\u0646 \u0628\u0631\u0647. \u0627\u06af\u0647 \u0622\u062e\u0631 \u0641\u0627\u06cc\u0644 \u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u06a9\u062a\u0627\u0628\u062e\u0648\u0646\u0647 jQuery \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0648 \u0646\u06af\u0627\u0647 \u06a9\u0646\u06cc\u062f \u0645\u062a\u0648\u062c\u0647 \u0645\u06cc\u0634\u06cc\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0647. <a href=\"https:\/\/mjkhajeh.ir\/wp-includes\/js\/jquery\/jquery.min.js?ver=3.6.0\" target=\"_blank\" rel=\"noreferrer noopener\">\u0641\u0627\u06cc\u0644 jQuery \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u0646<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u0635\u0644\u06cc \u062a\u0631\u06cc\u0646 \u062f\u0644\u06cc\u0644 \u0627\u06cc\u0646\u06a9\u0647 \u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 \u0631\u0648 \u0646\u062f\u0627\u0631\u06cc\u0645 \u0628\u062e\u0627\u0637\u0631 \u0639\u062f\u0645 \u062a\u062f\u0627\u062e\u0644 $ \u06a9\u062a\u0627\u0628\u062e\u0648\u0646\u0647 jQuery \u0628\u0627 \u0628\u0642\u06cc\u0647 \u06a9\u062a\u0627\u0628\u062e\u0648\u0646\u0647 \u0647\u0627\u0633\u062a. \u0645\u062b\u0644\u0627 \u06a9\u062a\u0627\u0628\u062e\u0648\u0646\u0647 <a href=\"https:\/\/mootools.net\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">MooTools<\/a> \u0647\u0645 \u0627\u0632 \u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u0647. \u0628\u0627 \u0627\u06cc\u0646\u06a9\u0647 \u0627\u06cc\u0646 \u06a9\u062a\u0627\u0628\u062e\u0648\u0646\u0647 \u062a\u0648\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0646\u06cc\u0633\u062a \u0627\u0645\u0627 \u062e\u0628 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646\u0634 \u06a9\u0647 \u06a9\u0627\u0631\u06cc \u0646\u062f\u0627\u0631\u0647 \u0648 \u0634\u0627\u06cc\u062f \u06cc\u0647 \u067e\u0644\u0627\u06af\u06cc\u0646\u060c \u0642\u0627\u0644\u0628\u060c \u06a9\u062f \u06cc\u0627 \u0647\u0631 \u0686\u06cc \u062f\u06cc\u06af\u0647 \u0628\u0627\u0634\u0647 \u06a9\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u06a9\u062a\u0627\u0628\u062e\u0648\u0646\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u0647. \u0627\u0645\u0627 \u0645\u0637\u0645\u0626\u0646\u0627 \u0647\u06cc\u0686 \u06a9\u062a\u0627\u0628\u062e\u0648\u0646\u0647 \u0627\u06cc \u0628\u0647 \u062c\u0632 jQuery \u0627\u0632 \u062a\u0627\u0628\u0639 jQuery \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u06cc\u06a9\u0646\u0647. \u067e\u0633 \u0627\u06af\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062e\u0648\u0627\u0633\u062a \u062a\u0627\u0628\u0639 $ \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0647 \u0645\u06cc\u062a\u0648\u0646\u0647 \u062e\u0648\u062f\u0634 \u0627\u0632 \u0631\u0648\u06cc \u062a\u0627\u0628\u0639 jQuery \u0627\u06cc\u0646 \u0631\u0648 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u0647.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0631\u0627\u0647 \u0647\u0627\u06cc \u062d\u0644 \u0627\u06cc\u0646 \u0645\u0634\u06a9\u0644<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0631\u0627\u06cc \u062d\u0644 \u0627\u06cc\u0646 \u0645\u0634\u06a9\u0644 \u0645\u0646 \u0633\u0647 \u0631\u0627\u0647 \u062d\u0644 \u062f\u0627\u0631\u0645. \u0627\u06af\u0647 \u0631\u0627\u0647 \u062d\u0644 \u062f\u06cc\u06af\u0647 \u0627\u06cc \u062f\u0627\u0631\u06cc\u062f \u062e\u0648\u0634\u062d\u0627\u0644 \u0645\u06cc\u0634\u0645 \u0628\u06af\u06cc\u062f \ud83d\ude42<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u0647\u0631 \u062c\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0635\u0648\u0631\u062a \u0639\u0627\u062f\u06cc $ \u0645\u06cc\u0646\u0648\u0633\u06cc\u0645 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f jQuery<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u0686\u0648\u0646 \u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u062a\u0627\u0628\u0639 jQuery \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u0647 \u0634\u0645\u0627 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0628\u062c\u0627\u06cc $ \u0627\u0632\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u062d\u062a\u06cc \u062a\u0648\u06cc \u06a9\u0646\u0633\u0648\u0644 \u0645\u0631\u0648\u0631\u06af\u0631 \u0647\u0645 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code ltr\"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n$(&#039;.damn_world&#039;).fadeOut();   \u00bb\u00bb\u00bb\u00bb   jQuery(&#039;.damn_world&#039;).fadeOut();\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 \u0644\u0648\u062f\u0631<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06cc\u0646 \u06a9\u062f\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0646\u0648\u0634\u062a\u06cc\u0645 \u0628\u0627\u0639\u062b \u0645\u06cc\u0634\u0647 \u06a9\u0647 \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u0645 \u062f\u0631 \u062d\u0642\u06cc\u0642\u062a $ \u0628\u0647 \u062a\u0627\u0628\u0639 jQuery \u0627\u0634\u0627\u0631\u0647 \u062f\u0627\u0631\u0647.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code ltr\"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n(function($) {\n\t$(document).ready( function() {\n\t\t\/\/ Code goes here\n\t\t$(&#039;.damn_world&#039;).fadeOut();\n\t});\n})(jQuery);\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">\u0633\u0627\u062e\u062a \u0645\u0648\u0642\u062a\u06cc $<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u06cc\u0646 \u0631\u0648\u0634 \u0645\u0648\u0642\u062a\u0627 \u062a\u0627\u0628\u0639 $ \u0631\u0648 \u0627\u0632 \u0631\u0648\u06cc jQuery \u0645\u06cc\u0633\u0627\u0632\u06cc\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0642\u0628\u0644 \u0627\u0632 \u0633\u0627\u062e\u062a\u0646\u0634 \u062a\u0627\u0628\u0639 $ \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0647 \u0645\u06cc\u0627\u06cc\u0645 \u062a\u0648\u06cc \u06cc\u0647 \u062a\u0627\u0628\u0639 \u062f\u06cc\u06af\u0647 \u06a9\u067e\u06cc\u0634 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0628\u0639\u062f \u0627\u0632 \u06a9\u062f \u062e\u0648\u062f\u0645\u0648\u0646 \u062f\u0648\u0628\u0627\u0631\u0647 \u0628\u0647 \u062a\u0627\u0628\u0639 \u0642\u0628\u0644\u06cc\u0634 \u0628\u0631\u0634 \u06af\u0631\u062f\u0648\u0646\u06cc\u0645 \u0648 \u0627\u062e\u062a\u0644\u0627\u0644\u06cc \u062a\u0648\u06cc \u0633\u0627\u06cc\u062a \u0627\u06cc\u062c\u0627\u062f \u0646\u0634\u0647.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code ltr\"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nlet cached$ = $;\n$ = jQuery;\n\n\/\/ Code goes here\n$(&#039;.damn_world&#039;).fadeOut();\n\n$ = cached$;\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h--1\">\u0646\u06a9\u062a\u0647<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 $ \u06a9\u0627\u0645\u0644\u0627 \u0642\u0631\u0627\u0631\u062f\u0627\u062f\u06cc \u0647\u0633\u062a \u0648 \u0634\u0645\u0627 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0627\u0632 \u0647\u0631 \u0686\u06cc\u0632 \u062f\u06cc\u06af\u0647 \u0627\u06cc \u06a9\u0647 \u0645\u062c\u0627\u0632 \u0628\u0627\u0634\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"has-white-color has-vivid-red-background-color has-text-color has-background wp-block-paragraph\">\u0645\u062b\u0644\u0627 \u0646\u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0627\u0632 ~ ! @ # ^&amp; * ( ) + = &#8211; { } [ ] \\ | &#8216; &#8221; : ; \/ . , &lt; &gt; \u0627\u0639\u062f\u0627\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"has-white-color has-vivid-green-cyan-background-color has-text-color has-background wp-block-paragraph\">\u0627\u0645\u0627 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0627\u0632: _ \u0648 \u062a\u0645\u0627\u0645 \u062d\u0631\u0648\u0641 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. <strong>\u062a\u0648\u062c\u0647: \u06cc\u06a9\u06cc \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0648\u0646\u0647 \u0647\u0627\u06cc \u067e\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0648\u0628 <a href=\"https:\/\/underscorejs.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Underscore.js<\/a> \u0647\u0633\u062a \u06a9\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 _ \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u0647.<\/strong><\/p>\n\n\n<!--themify_builder_static--><!--\/themify_builder_static-->","protected":false},"excerpt":{"rendered":"<p>\u062a\u0627\u0628\u0639 $ \u062a\u0627\u0628\u0639 \u0627\u0635\u0644\u06cc \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 jQuery \u0647\u0633\u062a. \u0627\u0645\u0627 \u062a\u0648\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u0627\u0632 jQuery \u0628\u062c\u0627\u06cc $ \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u0634\u0647. \u0627\u06cc\u0646\u062c\u0627 \u0645\u06cc\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0647 \u0686\u0631\u0627 \u0627\u06cc\u0646\u062c\u0648\u0631\u0647 \u0648 \u0631\u0627\u0647 \u062d\u0644 \u0686\u06cc\u0647<\/p>\n","protected":false},"author":1,"featured_media":322,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[6,12,18],"tags":[9,20,13,14,19],"class_list":["post-312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","category-javascript","category-wordpress","tag-9","tag-20","tag-13","tag-14","tag-19","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"builder_content":"","_links":{"self":[{"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/comments?post=312"}],"version-history":[{"count":0,"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/posts\/312\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/media\/322"}],"wp:attachment":[{"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjkhajeh.ir\/api\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}