{"id":443,"date":"2022-05-11T21:45:08","date_gmt":"2022-05-11T17:15:08","guid":{"rendered":"https:\/\/wpdone.ir\/docs\/?post_type=help&#038;p=443"},"modified":"2022-05-14T19:28:12","modified_gmt":"2022-05-14T14:58:12","slug":"%d9%82%d9%84%d8%a7%d8%a8-%d9%87%d8%a7%db%8c-%d8%b3%d8%b1%d8%a8%d8%b1%da%af-%d9%82%d8%a7%d9%84%d8%a8-%d8%a2%d9%85%d9%88%d8%b2%d8%b4%db%8c%d8%a7%d8%b1","status":"publish","type":"help","link":"https:\/\/wpdone.ir\/docs\/help\/%d9%82%d9%84%d8%a7%d8%a8-%d9%87%d8%a7%db%8c-%d8%b3%d8%b1%d8%a8%d8%b1%da%af-%d9%82%d8%a7%d9%84%d8%a8-%d8%a2%d9%85%d9%88%d8%b2%d8%b4%db%8c%d8%a7%d8%b1\/","title":{"rendered":"\u0633\u0631\u0628\u0631\u06af"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">amzshyar_cart_item<\/h2>\n\n\n\n<p>\u0622\u06cc\u06a9\u0648\u0646 \u0648 \u0644\u06cc\u0646\u06a9\u200c\u0647\u0627\u06cc \u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u0631\u0627 \u062d\u0630\u0641 \u0645\u06cc\u06a9\u0646\u062f\u060c \u0628\u0631\u0627\u06cc \u0645\u0648\u0627\u0642\u0639\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u0646\u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u062f\u0631 \u0647\u062f\u0631 \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; gutter: false; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_cart_item', '__return_false' );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_options_count_show<\/h2>\n\n\n\n<p>\u062f\u0631\u062d\u0627\u0644\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u062a\u0639\u062f\u0627\u062f \u062f\u0631 \u0622\u06cc\u06a9\u0648\u0646\u200c\u0647\u0627\u06cc \u0647\u062f\u0631 \u0632\u0645\u0627\u0646\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0645\u0627\u0648\u0633 \u0631\u0627 \u0631\u0648\u06cc \u0622\u06cc\u06a9\u0648\u0646 \u0646\u06af\u0647\u200c\u062f\u0627\u0631\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f \u0632\u06cc\u0631 \u062f\u06cc\u06af\u0631 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0631\u0641\u062a\u0646 \u0645\u0627\u0648\u0633 \u0631\u0648\u06cc \u0622\u200c\u06cc\u06a9\u0648\u0646\u200c\u0647\u0627 \u0646\u06cc\u0633\u062a:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"226\" height=\"58\" src=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image.png\" alt=\"\" class=\"wp-image-447\"\/><\/figure><\/div>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; gutter: false; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_header_options_count_show', '__return_true' );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_myaccount_url<\/h2>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u0644\u06cc\u0646\u06a9 \u0635\u0641\u062d\u0647 \u067e\u0646\u0644 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc\u06af\u06cc\u0631\u062f. \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u062d\u0627\u0644\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u0644\u06cc\u0646\u06a9 \u0628\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0648\u0648\u06a9\u0627\u0645\u0631\u0633 \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u06cc\u0634\u0648\u062f. \u062f\u0631 \u0645\u0648\u0627\u0642\u0639\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0644\u06cc\u0646\u06a9 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_header_myaccount_url', function ( $url ) {\n    return $url;\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_downloads_url<\/h2>\n\n\n\n<p>\u062a\u063a\u06cc\u06cc\u0631 \u0644\u06cc\u0646\u06a9 \u0622\u06cc\u062a\u0645 \u062f\u0648\u0631\u0647\u200c\u0647\u0627\u06cc \u0645\u0646 (\u062f\u0627\u0646\u0644\u0648\u062f\u0647\u0627) \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_header_downloads_url', function ( $url ) {\n    return $url;\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_edit_profile_url<\/h2>\n\n\n\n<p>\u062a\u063a\u06cc\u06cc\u0631 \u0644\u06cc\u0646\u06a9 \u0622\u064a\u062a\u0645 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_header_edit_profile_url', function ( $url ) {\n    return $url;\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_bookmarks_url<\/h2>\n\n\n\n<p>\u062a\u063a\u06cc\u06cc\u0631 \u0644\u06cc\u0646\u06a9 \u0622\u06cc\u062a\u0645 \u0646\u0634\u0627\u0646 \u0634\u062f\u0647\u200c\u0647\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_header_bookmarks_url', function ( $url ) {\n    return $url;\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_profile_menu_avatar<\/h2>\n\n\n\n<p>\u062a\u0635\u0648\u06cc\u0631 \u0622\u0648\u0627\u062a\u0627\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u062f\u0631 \u0645\u0646\u0648\u06cc \u0647\u062f\u0631 \u06a9\u0646\u0627\u0631 \u0646\u0627\u0645 \u0648 \u0627\u06cc\u0645\u06cc\u0644 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u06a9\u0646\u062f:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"315\" height=\"150\" src=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-1.png\" alt=\"\" class=\"wp-image-448\" srcset=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-1.png 315w, https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-1-300x143.png 300w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><\/figure><\/div>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; gutter: false; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_header_profile_menu_avatar', '__return_true' );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_profile_email<\/h2>\n\n\n\n<p>\u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u0627\u06cc\u0645\u06cc\u0644 \u06a9\u0627\u0631\u0628\u0631 \u062f\u0631 \u0645\u0646\u0648\u06cc \u0647\u062f\u0631 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f\u060c \u062f\u0631\u0635\u0648\u0631\u062a \u062a\u0645\u0627\u06cc\u0644 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f \u0645\u062b\u0644\u0627 \u0628\u062c\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0627\u06cc\u0645\u06cc\u0644\u060c \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0647\u06cc\u062f. \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u06a9\u0627\u0631\u0628\u0631 \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. \u062f\u0631 \u06a9\u062f \u0632\u06cc\u0631 \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0632 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0648\u06a9\u0627\u0645\u0631\u0633 \u062e\u0648\u0627\u0646\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u0648 \u062f\u0631\u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0647\u0645\u0686\u0646\u0627\u0646 \u0627\u06cc\u0645\u06cc\u0644 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"334\" height=\"143\" src=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-2.png\" alt=\"\" class=\"wp-image-449\" srcset=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-2.png 334w, https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-2-300x128.png 300w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><\/figure><\/div>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_header_profile_email', function ( $email, $user ) {\n    $data = get_user_meta( $user-&gt;ID, 'billing_phone', true );\n    if( empty( $data ) ) $data = $email;\n    return $data;\n}, 10, 2 );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_profile_menu_information<\/h2>\n\n\n\n<p>\u0645\u0648\u0631\u062f \u062c\u062f\u06cc\u062f \u0631\u0627 \u0628\u0647 \u0642\u0633\u0645\u062a \u0628\u0627\u0644\u0627\u06cc \u0645\u0646\u0648 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u06a9\u0646\u062f:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"467\" src=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-3.png\" alt=\"\" class=\"wp-image-450\" srcset=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-3.png 298w, https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-3-191x300.png 191w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/><\/figure><\/div>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_action( 'amzshyar_header_profile_menu_information', function ( $user ) {\n    amzshyar_header_profile_menu_add_item(\n        '\u0645\u0648\u0631\u062f \u0622\u0632\u0645\u0627\u06cc\u0634\u06cc',\n        'https:\/\/...',\n        '&lt;svg class=&quot;item-svg&quot; xmlns=&quot;http:\/\/www.w3.org\/2000\/svg&quot; height=&quot;24&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;24&quot;&gt;&lt;path d=&quot;M9 7v8l7-4zm12-4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z&quot;&gt;&lt;\/path&gt;&lt;\/svg&gt;'\n    );\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_profile_menu_items<\/h2>\n\n\n\n<p>\u0645\u0648\u0631\u062f \u062c\u062f\u06cc\u062f \u0631\u0627 \u0628\u0647 \u0642\u0633\u0645\u062a \u067e\u0627\u06cc\u06cc\u0646 \u0645\u0646\u0648 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u06a9\u0646\u062f:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"296\" height=\"464\" src=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-4.png\" alt=\"\" class=\"wp-image-452\" srcset=\"https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-4.png 296w, https:\/\/wpdone.ir\/docs\/wp-content\/uploads\/2022\/05\/image-4-191x300.png 191w\" sizes=\"auto, (max-width: 296px) 100vw, 296px\" \/><\/figure><\/div>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_action( 'amzshyar_header_profile_menu_items', function ( $user ) {\n    amzshyar_header_profile_menu_add_item(\n        '\u0645\u0648\u0631\u062f \u0622\u0632\u0645\u0627\u06cc\u0634\u06cc',\n        'https:\/\/...',\n        '&lt;svg class=&quot;item-svg&quot; xmlns=&quot;http:\/\/www.w3.org\/2000\/svg&quot; height=&quot;24&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;24&quot;&gt;&lt;path d=&quot;M9 7v8l7-4zm12-4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z&quot;&gt;&lt;\/path&gt;&lt;\/svg&gt;'\n    );\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_header_btn_login_class<\/h2>\n\n\n\n<p>\u0628\u0647 \u062f\u06a9\u0645\u0647 \u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0647\u0646\u0648\u0632 \u0644\u0627\u06af\u06cc\u0646 \u0646\u06a9\u0631\u062f\u0647 \u06a9\u0644\u0627\u0633 \u062c\u062f\u06cc\u062f \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u06a9\u0646\u062f:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_header_btn_login_class', function ( $classes ) {\n    return &quot;$classes new-class-name&quot;;\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_nav_menu_location_header<\/h2>\n\n\n\n<p>\u062a\u063a\u06cc\u06cc\u0631 \u0646\u0627\u0645 \u0641\u0647\u0631\u0633\u062a \u0645\u0646\u0648\u06cc \u0627\u0635\u0644\u06cc \u0647\u062f\u0631 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0642\u0644\u0627\u0628 \u0642\u0627\u0628\u0644 \u0627\u0646\u062c\u0627\u0645 \u0627\u0633\u062a. \u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u0627\u0632 \u0646\u0627\u0645 main \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0634\u0645\u0627 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0631 \u062d\u0633\u0628 \u0646\u06cc\u0627\u0632 \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_nav_menu_location_header', function ( $location_name, $header_type ) {\n    return $location_name;\n}, 10, 2 );\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u062a\u0645\u0627\u0645 \u0642\u0644\u0627\u0628\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0633\u0631\u0628\u0631\u06af \u0642\u0627\u0644\u0628 \u0634\u0645\u0627 \u0647\u0633\u062a\u0646\u062f \u062f\u0631 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647\u200c\u0627\u0646\u062f<\/p>\n","protected":false},"template":"","help-category":[26],"class_list":["post-443","help","type-help","status-publish","hentry","help-category-hooks"],"_links":{"self":[{"href":"https:\/\/wpdone.ir\/docs\/wp-json\/wp\/v2\/help\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpdone.ir\/docs\/wp-json\/wp\/v2\/help"}],"about":[{"href":"https:\/\/wpdone.ir\/docs\/wp-json\/wp\/v2\/types\/help"}],"wp:attachment":[{"href":"https:\/\/wpdone.ir\/docs\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"help-category","embeddable":true,"href":"https:\/\/wpdone.ir\/docs\/wp-json\/wp\/v2\/help-category?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}