{"id":1663,"date":"2014-06-19T12:20:16","date_gmt":"2014-06-19T08:50:16","guid":{"rendered":"http:\/\/xn--mgbguh09aqiwi.com\/?p=1663"},"modified":"2014-11-27T01:16:14","modified_gmt":"2014-11-26T21:46:14","slug":"%d9%87%da%a9-%d9%88-%d8%aa%d8%b1%d9%81%d9%86%d8%af-%d9%87%d8%a7%db%8c-%d9%85%d9%87%d9%85-%d9%85%d8%af%db%8c%d8%b1%db%8c%d8%aa-%d9%85%d8%ad%d8%aa%d9%88%d8%a7-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3","status":"publish","type":"post","link":"https:\/\/www.xn--mgbguh09aqiwi.com\/%d9%87%da%a9-%d9%88-%d8%aa%d8%b1%d9%81%d9%86%d8%af-%d9%87%d8%a7%db%8c-%d9%85%d9%87%d9%85-%d9%85%d8%af%db%8c%d8%b1%db%8c%d8%aa-%d9%85%d8%ad%d8%aa%d9%88%d8%a7-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3.html","title":{"rendered":"\u0647\u06a9 \u0648 \u062a\u0631\u0641\u0646\u062f \u0647\u0627\u06cc \u0645\u0647\u0645 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u062d\u062a\u0648\u0627 \u0648\u0631\u062f\u067e\u0631\u0633"},"content":{"rendered":"
\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0633\u0627\u0639\u062a \u0627\u0632 \u0633\u0627\u06cc\u062a \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0627\u062a \u06a9\u0627\u0645 , \u0642\u0635\u062f \u062f\u0627\u0631\u0645 \u0686\u0646\u062f\u06cc \u0627\u0632 \u062a\u0631\u0641\u0646\u062f \u0647\u0627 \u06cc\u0627 \u0647\u0645\u0627\u0646 \u0647\u06a9 \u0647\u0627\u06cc \u0645\u0647\u0645 \u0648 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u062d\u062a\u0648\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0627 \u0645\u0639\u0631\u0641\u06cc \u06a9\u0646\u0645 .<\/p>\n
\u0647\u06a9 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 , \u0628\u0647 \u0645\u0639\u0646\u0627\u06cc \u0627\u0636\u0627\u0641\u0647 , \u062d\u0630\u0641 \u0648 \u06cc\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0642\u0633\u0645\u062a \u0647\u0627\u06cc\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645 \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u06cc \u0628\u0627\u0634\u062f .<\/p>\n
\u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0647\u0627 , \u0647\u0645 \u0645\u06cc\u062a\u0648\u0627\u0646\u062f \u062f\u0631 \u0628\u062e\u0634 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0627\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645 \u0628\u0627\u0634\u062f \u0648 \u0647\u0645 \u0645\u06cc\u062a\u0648\u0627\u0646\u062f \u062f\u0631 \u0628\u062e\u0634 \u0642\u0627\u0644\u0628 \u0648 \u062f\u06cc\u0632\u0627\u06cc\u0646 \u0633\u0627\u06cc\u062a \u0628\u0627\u0634\u062f .<\/p>\n
\u062f\u0631 \u0632\u06cc\u0631 \u0633\u0639\u06cc \u062f\u0627\u0631\u0645 \u0628\u062e\u0634 \u06a9\u0648\u0686\u06a9\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u06a9\u062f \u0647\u0627 \u0631\u0627 \u0645\u0639\u0631\u0641\u06cc \u06a9\u0646\u0645 \u062a\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646\u0647\u0627 \u0628\u062a\u0648\u0646\u06cc\u062f \u0633\u0627\u06cc\u062a \u0648\u0631\u062f\u067e\u0631\u0633\u06cc \u062e\u0648\u062f \u0631\u0627 \u0633\u0641\u0627\u0631\u0634\u06cc \u062a\u0631 \u0648 \u062d\u0631\u0641\u0647 \u0627\u06cc \u062a\u0631 \u0628\u0633\u0627\u0632\u06cc\u062f …<\/p>\n
<\/p>\n
1 – \u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u062a\u0645\u0627\u0645\u06cc \u067e\u0633\u062a \u0647\u0627\u06cc \u0633\u0627\u06cc\u062a\u00a0\u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u062a\u0627 \u06a9\u0646\u0648\u0646 :<\/p>\n
<?php echo $numposts = $wpdb->get_var(\"SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'\");\r\nif (0 < $numposts) $numposts = number_format($numposts); \r\n?><\/pre>\n2 – \u0646\u0645\u0627\u06cc\u0634 \u0645\u0637\u0627\u0644\u0628 \u062a\u0635\u0627\u062f\u0641\u06cc :<\/p>\n
<?php\r\nquery_posts(array('orderby' => 'rand', 'showposts' => 1));\r\nif (have_posts()) :\r\nwhile (have_posts()) : the_post();\r\nthe_title();\r\nthe_excerpt();\r\nendwhile;\r\nendif; \r\n?><\/pre>\n3 – \u0639\u062f\u0645 \u0646\u0645\u0627\u06cc\u0634 \u0646\u0648\u0627\u0631 \u0633\u06cc\u0627\u0647 \u0631\u0646\u06af \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u0631 \u0633\u0627\u06cc\u062a \u00a0: ( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
<?php\r\n global $current_user;\r\n get_currentuserinfo();\r\n \r\n if ($current_user->ID != 1) {\r\n add_filter( 'show_admin_bar', '__return_false' );\r\n }\r\n?><\/pre>\n4 – \u0639\u062f\u0645 \u062f\u0633\u062a\u0631\u0633\u06cc \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0633\u0627\u06cc\u062a \u0628\u0647 wp-admin ( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
<?php\r\n function restrict_access_admin_panel(){\r\n global $current_user;\r\n get_currentuserinfo();\r\n \r\n if ($current_user->user_level < 4) { \/\/if not admin, die with message\r\n wp_redirect( get_bloginfo('url') );\r\n exit;\r\n }\r\n \r\n }\r\n add_action('admin_init', 'restrict_access_admin_panel', 1);\r\n?><\/pre>\n5 – \u0639\u062f\u0645 \u0646\u0645\u0627\u06cc\u0634 \u0642\u0633\u0645\u062a \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 – \u0628\u062c\u0632 \u0645\u062f\u06cc\u0631\u06cc\u062a \u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
<?php\r\nfunction wp_hide_update() {\r\n global $current_user;\r\n get_currentuserinfo();\r\n \r\n if ($current_user->ID != 1) { \/\/ only admin will see it\r\n remove_action( 'admin_notices', 'update_nag', 3 );\r\n }\r\n }\r\n add_action('admin_menu','wp_hide_update');\r\n?><\/pre>\n6 – \u0627\u0641\u0632\u0627\u06cc\u0634 \u06a9\u06cc\u0641\u06cc\u062a \u0639\u06a9\u0633 \u0647\u0627\u06cc \u0622\u067e\u0644\u0648\u062f \u0634\u062f\u0647 ( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
\u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u0639\u06a9\u0633 \u0622\u067e\u0628\u0648\u062f \u0634\u062f\u0647 \u0631\u0627 optimize \u0648 \u0641\u0634\u0631\u062f\u0647 \u0645\u06cc\u06a9\u0646\u062f \u06a9\u0647 \u0628\u0627\u0639\u062b \u0645\u06cc\u0634\u0648\u062f \u06a9\u06cc\u0641\u06cc\u062a \u0639\u06a9\u0633 \u06a9\u0645\u06cc \u067e\u0627\u06cc\u06cc\u0646 \u0628\u0631\u0648\u062f . \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u06a9\u0627\u0631 , \u0627\u0632 \u06a9\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f .<\/p>\n
<?php\r\nadd_filter( 'jpg_quality', 'high_jpg_quality' );\r\nfunction high_jpg_quality() {\r\nreturn 100;\r\n} \r\n?><\/pre>\n7 – \u0627\u062c\u0631\u0627\u06cc ShortCode \u0647\u0627 \u062f\u0631 \u062e\u0627\u0631\u062c \u0627\u0632 \u062d\u0644\u0642\u0647 ( \u0647\u0631 \u062c\u0627\u06cc\u06cc \u0627\u0632 \u0642\u0627\u0644\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 )<\/p>\n
<?php echo do_shortcode(\"[shortcode]\"); ?><\/pre>\n8 – \u0627\u0641\u0632\u0648\u062f\u0646 \u0644\u0648\u06af\u0648\u06cc \u0627\u062e\u062a\u0635\u0627\u0635\u06cc \u062e\u0648\u062f \u062f\u0631 \u0642\u0633\u0645\u062a \u0645\u062f\u06cc\u0631\u06cc\u062a : ( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f ) . ( \u062f\u0631 \u062e\u0637 \u0686\u0647\u0627\u0631\u0645 , \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f )<\/p>\n
<?php add_action('admin_head', 'custom_logo');\r\nfunction custom_logo() {\r\n?>\r\n<a href=\"http:\/\/xn--mgbguh09aqiwi.com\" target=\"_blank\"><img style=\"position:absolute; left:10px; bottom:10px; z-index:1000; width:150px; display:block\" src=\"http:\/\/xn--mgbguh09aqiwi.com\/wp-content\/uploads\/2013\/11\/logo.png\"\/><\/a>\r\n<?php\r\n} ?><\/pre>\n9 – \u062d\u0630\u0641 \u0648\u0631\u0698\u0646 \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u0632 \u0633\u0648\u0631\u0633 \u0642\u0627\u0644\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 ( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
<?php remove_action('wp_header', 'wp_generator'); ?><\/pre>\n10 – \u062a\u063a\u06cc\u06cc\u0631 \u062a\u0645\u0627\u0645\u06cc \u0644\u06cc\u0646\u06a9 \u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u062f\u0631 \u0642\u0627\u0644\u0628 , \u0628\u0647 Nofollow\u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
<?php function no_follow( $links ) {\r\n foreach($links as $link) {\r\n $link->link_rel .= ' nofollow';\r\n $link->link_rel = trim($link->link_rel);\r\n }\r\n return $links;\r\n}\r\nadd_filter('get_bookmarks', 'no_follow'); ?><\/pre>\n11 – \u062a\u063a\u06cc\u06cc\u0631 \u062a\u0639\u062f\u0627\u062f \u06a9\u0644\u0645\u0627\u062a \u062a\u0627\u0628\u0639 the_excerpt\u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
<?php function custom_excerpt_length( $length ) {\r\n\treturn 50;\r\n}\r\nadd_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); ?><\/pre>\n12 – \u0641\u0639\u0627\u0644 \u0633\u0627\u0632\u06cc \u0642\u0633\u0645\u062a \u067e\u06cc\u0648\u0646\u062f \u0647\u0627 \u0628\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 ( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
<?php add_filter( 'pre_option_link_manager_enabled', '__return_true' ); ?><\/pre>\n13 – \u0627\u0641\u0632\u0648\u062f\u0646 \u06cc\u06a9 \u06cc\u0627\u06a9\u0633 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062f\u0644\u062e\u0648\u0627\u0647 \u0634\u0645\u0627 , \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0641\u0632\u0648\u062f\u0646 \u0646\u0648\u0634\u062a\u0647 \u0648 \u0628\u0631\u06af\u0647 \u062c\u062f\u06cc\u062f \u062f\u0631 \u0642\u0633\u0645\u062a \u0645\u062f\u06cc\u0631\u06cc\u062a\u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
\u062a\u0648\u062c\u0647 :<\/span> \u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062e\u0648\u062f , \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f .<\/p>\n
<?php function text_after_title( $post_type ) {?>\r\n<div class=\"after-title-help postbox\">\r\n <h3>\u062a\u0648\u062c\u0647 : <\/h3>\r\n <div class=\"inside\">\r\n <ol>\r\n <li>\u062a\u0631\u062c\u06cc\u0647\u0627 \u0627\u0632 \u0628\u0631\u0686\u0633\u0628 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0646\u0648\u0634\u062a\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f<\/li>\r\n <li>\u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062a\u0635\u0648\u06cc\u0631 \u0634\u0627\u062e\u0635 \u0647\u0631 \u067e\u0633\u062a \u062f\u0631 \u0635\u0641\u062d\u0647 \u06cc \u0627\u0635\u0644\u06cc , \u062d\u062a\u0645\u0627 \u0628\u0627\u06cc\u062f \u0639\u06a9\u0633 \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u062a\u0635\u0648\u06cc\u0631 \u0634\u0627\u062e\u0635 ( \u062f\u0631 \u0642\u0633\u0645\u062a \u067e\u0627\u06cc\u06cc\u0646 \u0648 \u0686\u067e ) \u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0645\u0627\u06cc\u06cc\u062f<\/li>\r\n <li>\u062d\u062a\u0645\u0627 \u062f\u0631 \u062a\u0645\u0627\u0645\u06cc \u067e\u0633\u062a \u0647\u0627\u06cc \u062e\u0648\u062f \u0627\u0632 \u0627\u062f\u0627\u0645\u0647 \u0645\u0637\u0644\u0628 ( Read More ) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f<\/li>\r\n <li>\u0628\u0627 \u062a\u0634\u06a9\u0631 : \u0648\u062d\u06cc\u062f \u0645\u062c\u06cc\u062f\u06cc<\/li>\r\n <\/ol>\r\n <p><\/p>\r\n <\/div>\r\n <\/div>\r\n<?php }\r\nadd_action( 'edit_form_after_title', 'text_after_title' ); ?><\/pre>\n14 – \u062a\u063a\u06cc\u06cc\u0631 \u0646\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u0646\u062f\u0647 \u0627\u06cc\u0645\u06cc\u0644 \u0627\u0632 \u06a9\u0644\u0645\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 , \u0628\u0647 \u06a9\u0644\u0645\u0647 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0634\u0645\u0627\u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
\u062a\u0648\u062c\u0647 :<\/span> \u0628\u0647 \u062c\u0627\u06cc \u0627\u06cc\u0645\u06cc\u0644 \u0648 \u06a9\u0644\u0645\u0647 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0627\u062a \u06a9\u0627\u0645 , \u0645\u0648\u0627\u0631\u062f \u062e\u0648\u062f \u0631\u0627 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f .<\/p>\n
<?php add_filter('wp_mail_from', 'new_mail_from');\r\nadd_filter('wp_mail_from_name', 'new_mail_from_name');\r\n\r\nfunction new_mail_from($old) {\r\n return 'info@\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a.com';\r\n}\r\nfunction new_mail_from_name($old) {\r\n return '\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0627\u062a \u06a9\u0627\u0645';\r\n} ?><\/pre>\n15 – \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 FavIcon \u0628\u0647 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0648\u0631\u062f\u067e\u0631\u0633\u06cc\u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f ) .<\/p>\n
\u062a\u0648\u062c\u0647 :<\/span> \u0639\u06a9\u0633\u06cc \u062f\u0631 \u0633\u0627\u06cc\u0632 16*16 , \u0628\u0627 \u067e\u0633\u0648\u0646\u062f ico \u0648 \u0628\u0627 \u0633\u0627\u0645 favicon \u062f\u0631 \u0631\u0648\u062a \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0622\u067e\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f .<\/p>\n
<?php function blog_favicon() {\r\n echo '<link rel=\"Shortcut Icon\" type=\"image\/x-icon\" href=\"'.get_bloginfo('wpurl').'\/favicon.ico\" \/>';\r\n }\r\n add_action('wp_head', 'blog_favicon'); ?><\/pre>\n16 – \u062a\u063a\u06cc\u06cc\u0631Gravatar \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0648\u0631\u062f\u067e\u0631\u0633 , \u0628\u0647 \u0622\u062f\u0631\u0633 \u062f\u0644\u062e\u0648\u0627\u0647 \u062e\u0648\u062f\u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
\u062a\u0648\u062c\u0647 :<\/span> \u062f\u0631 \u0622\u062e\u0631 \u062e\u0637 3 , \u0622\u062f\u0631\u0633 \u0639\u06a9\u0633 \u062e\u0648\u062f \u0631\u0627 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f .<\/p>\n
<?php add_filter( 'avatar_defaults', 'newgravatar' );\r\nfunction newgravatar ($avatar_defaults) {\r\n$myavatar = get_bloginfo('template_directory') . '\/images\/gravatar.gif';\r\n$avatar_defaults[$myavatar] = \"Mirani.ir\";\r\nreturn $avatar_defaults;\r\n} ?><\/pre>\n17 –\u00a0\u00a0\u062a\u0639\u0648\u06cc\u0636\u00a0\u0646\u0648\u0634\u062a\u0647 \u06cc \u0641\u0648\u062a\u0631 \u0646\u0627\u062d\u06cc\u0647 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648\u0631\u062f\u067e\u0631\u0633\u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
\u062a\u0648\u062c\u0647 :<\/span>\u00a0\u062f\u0631 \u062e\u0637 2\u00a0, \u0622\u062f\u0631\u0633 \u0639\u06a9\u0633 \u062e\u0648\u062f \u0631\u0627 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f .<\/p>\n
<?php function modify_footer_admin () {\r\n echo 'Develop By <a href=\"http:\/\/xn--mgbguh09aqiwi.com\">\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0627\u062a \u06a9\u0627\u0645<\/a>';\r\n}\r\nadd_filter('admin_footer_text', 'modify_footer_admin'); ?><\/pre>\n18 – \u062c\u0633\u062a\u062c\u0648 \u0641\u0642\u0637 \u062f\u0631 \u0639\u0646\u0627\u0648\u06cc\u0646 \u067e\u0633\u062a \u0647\u0627 \u00a0( \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u062f\u0631\u062c \u0634\u0648\u062f )<\/p>\n
<?php\r\nfunction __search_by_title_only( $search, &$wp_query )\r\n{\r\n global $wpdb;\r\n if ( empty( $search ) )\r\n return $search; \/\/ skip processing - no search term in query\r\n $q = $wp_query->query_vars;\r\n $n = ! empty( $q['exact'] ) ? '' : '%';\r\n $search =\r\n $searchand = '';\r\n foreach ( (array) $q['search_terms'] as $term ) {\r\n $term = esc_sql( like_escape( $term ) );\r\n $search .= \"{$searchand}($wpdb->posts.post_title LIKE '{$n}{$term}{$n}')\";\r\n $searchand = ' AND ';\r\n }\r\n if ( ! empty( $search ) ) {\r\n $search = \" AND ({$search}) \";\r\n if ( ! is_user_logged_in() )\r\n $search .= \" AND ($wpdb->posts.post_password = '') \";\r\n }\r\n return $search;\r\n}\r\nadd_filter( 'posts_search', '__search_by_title_only', 500, 2 );\r\n?><\/pre>\n19 – \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0631\u0627\u0633\u062a \u06a9\u0644\u06cc\u06a9 \u062f\u0631 \u0635\u0641\u062d\u0627\u062a ( \u062f\u0631\u062c \u062f\u0631 header.php \u0648 \u0628\u06cc\u0646 \u062f\u0648 \u062a\u06af <head> \u0648 <head\/> )<\/p>\n
<script type=\"text\/javascript\">\r\n$(document).ready(function(){\r\n $(document).bind(\"contextmenu\",function(e){\r\n return false;\r\n });\r\n});\r\n<\/script><\/pre>\n20 – \u062e\u0627\u0644\u06cc \u06a9\u0631\u062f\u0646 \u0627\u062a\u0648\u0645\u0627\u062a\u06cc\u06a9 \u0632\u0628\u0627\u0644\u0647 \u062f\u0627\u0646 ( \u062f\u0631\u062c \u062f\u0631 wp-config.php )<\/p>\n
define('EMPTY_TRASH_DAYS', 5 );<\/pre>\n\u00a0\u06af\u0631\u062f\u0627\u0648\u0631\u06cc : \u0648\u062d\u06cc\u062f \u0645\u062c\u06cc\u062f\u06cc<\/span><\/p>\n
\u067e\u062e\u0634 \u0627\u062e\u062a\u0635\u0627\u0635\u06cc<\/p>\n","protected":false},"excerpt":{"rendered":"
\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0633\u0627\u0639\u062a \u0627\u0632 \u0633\u0627\u06cc\u062a \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0627\u062a \u06a9\u0627\u0645 , \u0642\u0635\u062f \u062f\u0627\u0631\u0645 \u0686\u0646\u062f\u06cc \u0627\u0632 \u062a\u0631\u0641\u0646\u062f \u0647\u0627 \u06cc\u0627 \u0647\u0645\u0627\u0646 \u0647\u06a9 \u0647\u0627\u06cc \u0645\u0647\u0645 \u0648 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u062d\u062a\u0648\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0631\u0627 \u0645\u0639\u0631\u0641\u06cc \u06a9\u0646\u0645 . \u0647\u06a9 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 , \u0628\u0647 \u0645\u0639\u0646\u0627\u06cc \u0627\u0636\u0627\u0641\u0647 , \u062d\u0630\u0641 \u0648 \u06cc\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0642\u0633\u0645\u062a \u0647\u0627\u06cc\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645 \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u06cc \u0628\u0627\u0634\u062f . \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0647\u0627 , \u0647\u0645 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[258],"tags":[985,993,984,986,989,1000,998,990,988,992,994,995,987,997,982,983,981,996,991,979,980,978,999],"_links":{"self":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts\/1663"}],"collection":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/comments?post=1663"}],"version-history":[{"count":0,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts\/1663\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/media?parent=1663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/categories?post=1663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/tags?post=1663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}