{"id":745,"date":"2022-06-19T12:21:32","date_gmt":"2022-06-19T07:51:32","guid":{"rendered":"https:\/\/wpdone.ir\/docs\/?post_type=help&#038;p=745"},"modified":"2022-06-19T12:21:32","modified_gmt":"2022-06-19T07:51:32","slug":"tickets-hooks","status":"publish","type":"help","link":"https:\/\/wpdone.ir\/docs\/help\/tickets-hooks\/","title":{"rendered":"\u062a\u06cc\u06a9\u062a \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"},"content":{"rendered":"\n<p>\u0642\u0644\u0627\u0628 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u06a9\u0646\u0646\u062f \u062a\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0644\u062e\u0648\u0627\u0647 \u062e\u0648\u062f \u0631\u0627 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0627\u0641\u0632\u0648\u062f\u0646 \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f<\/h2>\n\n\n\n<p>\u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u062a\u06cc\u06a9\u062a\u200c\u0647\u0627 \u062f\u0627\u0631\u0627\u06cc \u06f3 \u0648\u0636\u0639\u06cc\u062a <strong>\u0628\u0627\u0632<\/strong>\u060c <strong>\u067e\u0627\u0633\u062e \u062f\u0627\u062f\u0647 \u0634\u062f\u0647<\/strong> \u0648 <strong>\u0628\u0633\u062a\u0647 \u0634\u062f\u0647<\/strong> \u0647\u0633\u062a\u0646\u062f. \u0627\u06cc\u0646 \u0648\u0636\u0639\u06cc\u062a \u0647\u0627 \u0628\u0627 \u0634\u0646\u0627\u0633\u0647 \u0647\u0627\u06cc \u0631\u0632\u0631\u0648 \u0634\u062f\u0647 <strong>open<\/strong>, <strong>answered<\/strong> \u0648 <strong>closed<\/strong> \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647\u200c\u0627\u0646\u062f. \u062f\u0631\u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u062f \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f\u06cc \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u0644\u0627\u0632\u0645 \u0627\u0633\u062a \u06cc\u06a9 \u0634\u0646\u0627\u0633\u0647 \u0645\u0646\u062d\u0635\u0631\u0628\u0641\u0631\u062f \u0628\u0631\u0627\u06cc \u0648\u0636\u0639\u06cc\u062a \u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u062e\u0648\u062f \u062f\u0631 \u0646\u0638\u0631 \u0628\u06af\u06cc\u0631\u06cc\u062f.<\/p>\n\n\n\n<p><strong>\u0631\u0648\u0646\u062f \u06a9\u0644\u06cc \u06a9\u0627\u0631:<\/strong><\/p>\n\n\n\n<p><strong>\u06f1.<\/strong> \u0627\u0641\u0632\u0648\u062f\u0646 \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f <strong>\u06f2.<\/strong> \u062a\u0639\u0631\u06cc\u0641 \u0639\u0646\u0648\u0627\u0646 <strong>\u06f3.<\/strong> \u0627\u0639\u0645\u0627\u0644 \u0631\u0646\u06af \u062f\u0644\u062e\u0648\u0627\u0647<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u06f1. \u0642\u0644\u0627\u0628: amzshyar_tickets_status<\/h2>\n\n\n\n<p>\u0627\u0641\u0632\u0648\u062f\u0646 \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_tickets_status', function ( $status_list ) {\n    $status_list&#91;] = 'new-status';\n    return $status_list;\n} );\n<\/pre><\/div>\n\n\n<p><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u0645\u0627 \u0628\u0631\u0627\u06cc \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f \u0627\u0632 \u0634\u0646\u0627\u0633\u0647 <strong>new-status<\/strong> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u06cc\u0645.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u06f2. \u0642\u0644\u0627\u0628: amzshyar_tickets_status_title<\/h2>\n\n\n\n<p>\u062a\u0639\u0631\u06cc\u0641 \u0639\u0646\u0648\u0627\u0646 \u0646\u0645\u0627\u06cc\u0634\u06cc \u0628\u0631\u0627\u06cc \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f\u200c ( \u062f\u0631\u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u062a\u0639\u0631\u06cc\u0641 \u0646\u06a9\u0646\u06cc\u062f <strong>new-status<\/strong> \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f ) :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_tickets_status_title', function ( $data ) {\n    if( 'new-status' == $data ) return '\u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f';\n    return $data;\n} );\n<\/pre><\/div>\n\n\n<p><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u0645\u062a\u063a\u06cc\u0631 <strong>data$<\/strong> \u0634\u0646\u0627\u0633\u0647 \u0648\u0636\u0639\u06cc\u062a \u0631\u0627 \u0628\u0631\u0645\u06cc\u06af\u0631\u062f\u0627\u0646\u062f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u06f3. \u0627\u0639\u0645\u0627\u0644 \u0631\u0646\u06af \u062f\u0644\u062e\u0648\u0627\u0647 \u0631\u0648\u06cc \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f<\/h2>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u0631\u0646\u06af \u062f\u0644\u062e\u0648\u0627\u0647 \u0628\u0627\u06cc\u062f \u0627\u0633\u062a\u0627\u06cc\u0644 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0628\u0647 <strong>wp_head<\/strong> \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645.<\/p>\n\n\n\n<p>\u062a\u0627\u0628\u0639 <strong>()amzshyar_tickets_status_style_color<\/strong> \u0627\u0633\u062a\u0627\u06cc\u0644 \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u062a\u0648\u0644\u06cc\u062f \u0645\u06cc\u06a9\u0646\u062f. \u062f\u0631 <strong>\u0648\u0631\u0648\u062f\u06cc \u0627\u0648\u0644<\/strong> <strong>\u0634\u0646\u0627\u0633\u0647 \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f<\/strong> \u0648 \u062f\u0631 <strong>\u0648\u0631\u0648\u062f\u06cc \u062f\u0648\u0645<\/strong> \u062a\u0627\u0628\u0639 <strong>\u06a9\u062f \u0631\u0646\u06af<\/strong> \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_action( 'wp_head', function () {\n    amzshyar_tickets_status_style_color( 'new-status', '#f48e36' );\n} );\n<\/pre><\/div>\n\n\n<p>\u062f\u0631\u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u062f \u0648\u0636\u0639\u06cc\u062a \u0647\u0627\u06cc \u0628\u06cc\u0634\u062a\u0631\u06cc \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u0644\u0627\u0632\u0645 \u0627\u0633\u062a \u0645\u0648\u0627\u0631\u062f \u06f1 \u062a\u0627 \u06f3 \u0631\u0627 \u0645\u062c\u062f\u062f \u0628\u0631\u0627\u06cc \u0648\u0636\u0639\u06cc\u062a \u062c\u062f\u06cc\u062f \u0647\u0645 \u0637\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_tickets_status_in_filters<\/h2>\n\n\n\n<p>\u0627\u06cc\u0646 \u0642\u0644\u0627\u0628 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u06a9\u0646\u062f \u062a\u0627 \u0648\u0636\u0639\u06cc\u062a \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062a\u0645\u0627\u06cc\u0644 \u0646\u062f\u0627\u0631\u06cc\u062f \u062f\u0631 \u0642\u0633\u0645\u062a \u0641\u06cc\u0644\u062a\u0631 \u062a\u06cc\u06a9\u062a\u200c\u0647\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0646\u0634\u0648\u062f. \u06a9\u0627\u0641\u06cc\u0633\u062a \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u0631\u0637 \u0646\u0645\u0648\u0646\u0647 \u0648\u0636\u0639\u06cc\u062a \u062f\u0644\u062e\u0648\u0627\u0647 \u062e\u0648\u062f \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a false \u0631\u0627 return \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_tickets_status_in_filters', function ( $data, $status ) {\n    if( 'new-status' == $status ) return false;\n    return $data;\n}, 10, 2 );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_tickets_files_dir<\/h2>\n\n\n\n<p>\u062a\u063a\u06cc\u06cc\u0631 \u0645\u0633\u06cc\u0631 \u0622\u067e\u0644\u0648\u062f \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u067e\u06cc\u0648\u0633\u062a:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_tickets_files_dir', function () {\n    return &#91;\n        'path' =&gt; WP_CONTENT_DIR . '\/uploads\/tickets',\n        'url'  =&gt; content_url( 'uploads\/tickets\/' )\n    ];\n} );\n<\/pre><\/div>\n\n\n<p><strong>\u0648\u0631\u0648\u062f\u06cc path:<\/strong> \u0645\u0633\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0622\u067e\u0644\u0648\u062f \u0641\u0627\u06cc\u0644 \u0628\u0631\u0627\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644<\/p>\n\n\n\n<p><strong>\u0648\u0631\u0648\u062f\u06cc url:<\/strong> \u0622\u062f\u0631\u0633 \u0639\u0645\u0648\u0645\u06cc \u0641\u0627\u06cc\u0644 \u0628\u0631\u0627\u06cc \u062f\u0627\u0646\u0644\u0648\u062f \u0641\u0627\u06cc\u0644 \u062a\u0648\u0633\u0637 \u06a9\u0627\u0631\u0628\u0631<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_tickets_files_max_size_mb<\/h2>\n\n\n\n<p>\u062a\u063a\u06cc\u06cc\u0631 \u062d\u062f\u0627\u06a9\u062b\u0631 \u062d\u062c\u0645 \u0645\u062c\u0627\u0632 \u0628\u0631\u0627\u06cc \u0622\u067e\u0644\u0648\u062f \u0641\u0627\u06cc\u0644 \u067e\u06cc\u0648\u0633\u062a \u0628\u0647 \u0645\u06af\u0627\u0628\u0627\u06cc\u062a:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_tickets_files_max_size_mb', function () {\n    return 10;\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_tickets_files_formats<\/h2>\n\n\n\n<p>\u062a\u063a\u06cc\u06cc\u0631 \u0641\u0631\u0645\u062a \u0647\u0627\u06cc \u0645\u062c\u0627\u0632 \u0628\u0631\u0627\u06cc \u0622\u067e\u0644\u0648\u062f \u0641\u0627\u06cc\u0644 \u067e\u06cc\u0648\u0633\u062a:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_tickets_files_formats', function () {\n    return &#91; 'jpg', 'jpeg', 'png', 'zip' ];\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_tickets_url<\/h2>\n\n\n\n<p>\u062f\u0631\u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u0648\u0631\u062a\u06a9\u062f \u062f\u0631 \u0628\u0631\u06af\u0647 \u062f\u06cc\u06af\u0631\u06cc \u062a\u06cc\u06a9\u062a\u200c\u0647\u0627\u06cc \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u062f\u0647\u06cc\u062f \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0644\u06cc\u0646\u06a9 \u06a9\u0627\u0645\u0644 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0628\u0631\u06af\u0647 \u062a\u06cc\u06a9\u062a\u200c\u0647\u0627 \u0631\u0627 \u0628\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \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_tickets_url', function () {\n    return 'https:\/\/your-site\/tickets';\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_tickets_limit<\/h2>\n\n\n\n<p>\u062a\u063a\u06cc\u06cc\u0631 \u062a\u0639\u062f\u0627\u062f \u0646\u0645\u0627\u06cc\u0634 \u0646\u062a\u0627\u06cc\u062c \u062a\u06cc\u06a9\u062a\u200c\u0647\u0627: \u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u06f2\u06f0 \u0645\u0648\u0631\u062f \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_tickets_limit', function () {\n    return 20;\n} );\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">amzshyar_dashbaord_last_tickets<\/h2>\n\n\n\n<p>\u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u0622\u062e\u0631\u06cc\u0646 \u062a\u06cc\u06a9\u062a \u0647\u0627\u06cc \u0628\u0627\u0632 \u062f\u0631 \u067e\u06cc\u0634\u062e\u0648\u0627\u0646 \u067e\u0646\u0644 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f. \u062f\u0631\u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u062a\u0645\u0627\u06cc\u0644 \u0628\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0642\u0644\u0627\u0628 \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0631\u0627 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; gutter: false; title: ; notranslate\" title=\"\">\nadd_filter( 'amzshyar_dashbaord_last_tickets', '__return_false' );\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0627\u06cc\u0646 \u0642\u0644\u0627\u0628 \u0647\u0627 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u06a9\u0646\u0646\u062f \u062a\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0644\u062e\u0648\u0627\u0647 \u062e\u0648\u062f \u0631\u0627 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n","protected":false},"template":"","help-category":[26],"class_list":["post-745","help","type-help","status-publish","hentry","help-category-hooks"],"_links":{"self":[{"href":"https:\/\/wpdone.ir\/docs\/wp-json\/wp\/v2\/help\/745","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=745"}],"wp:term":[{"taxonomy":"help-category","embeddable":true,"href":"https:\/\/wpdone.ir\/docs\/wp-json\/wp\/v2\/help-category?post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}