{"id":35681,"date":"2025-05-05T13:55:18","date_gmt":"2025-05-05T10:25:18","guid":{"rendered":"https:\/\/axio.ir\/?p=35681"},"modified":"2025-05-05T13:59:22","modified_gmt":"2025-05-05T10:29:22","slug":"%d8%a7%d8%af%d9%85%db%8c%d9%86-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d9%86%d9%85%d8%a7%db%8c%d8%b4-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d8%b2%d9%85%d8%a7%d9%86-%d9%88%d8%b1%d9%88%d8%af-%da%a9%d8%a7%d8%b1","status":"publish","type":"post","link":"https:\/\/axio.ir\/en\/%d8%a7%d8%af%d9%85%db%8c%d9%86-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3-%d9%86%d9%85%d8%a7%db%8c%d8%b4-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d8%b2%d9%85%d8%a7%d9%86-%d9%88%d8%b1%d9%88%d8%af-%da%a9%d8%a7%d8%b1.php\/","title":{"rendered":"\u0627\u062f\u0645\u06cc\u0646 \u0648\u0631\u062f\u067e\u0631\u0633: \u0646\u0645\u0627\u06cc\u0634 \u0622\u062e\u0631\u06cc\u0646 \u0632\u0645\u0627\u0646 \u0648\u0631\u0648\u062f \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0628\u0647 \u0633\u0627\u06cc\u062a \u062f\u0631 \u0644\u06cc\u0633\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0627\u0641\u0632\u0648\u062f\u0646 \u06a9\u062f \u0628\u0647 \u0641\u0627\u06cc\u0644 functions.php \u0642\u0627\u0644\u0628.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\" data-line=\"\">function insert_last_login( $login ) {\nglobal $user_id;\n$user = get_userdatabylogin( $login );\nupdate_user_meta( $user-&gt;ID, &#039;last_login&#039;, gmdate( &#039;Y-m-d H:i:s&#039; ), the_time(&#039;Y-m-j&#039;) );\n}\nadd_action( &#039;wp_login&#039;, &#039;insert_last_login&#039; );\n \nfunction add_last_login_column( $columns ) {\n$columns[&#039;last_login&#039;] = __( &#039;\u0622\u062e\u0631\u064a\u0646 \u0648\u0631\u0648\u062f&#039;, &#039;last_login&#039; );\nreturn $columns;\n}\nadd_filter( &#039;manage_users_columns&#039;, &#039;add_last_login_column&#039; );\n \nfunction add_last_login_column_value( $value, $column_name, $user_id ) {\n$user = get_userdata( $user_id );\nif ( &#039;last_login&#039; == $column_name &amp;&amp; $user-&gt;last_login )\n$value = jdate( &#039;Y\/m\/d g:ia&#039;, strtotime( $user-&gt;last_login ) );\nreturn $value;\n}\nadd_action( &#039;manage_users_custom_column&#039;, &#039;add_last_login_column_value&#039;, 10, 3 );<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u0641\u0632\u0648\u062f\u0646 \u06a9\u062f \u0628\u0647 \u0641\u0627\u06cc\u0644 functions.php \u0642\u0627\u0644\u0628.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[298,234,297],"tags":[],"class_list":["post-35681","post","type-post","status-publish","format-standard","hentry","category-after-install","category-code","category-wordpress-admin"],"menu_order":0,"_links":{"self":[{"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/posts\/35681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/comments?post=35681"}],"version-history":[{"count":1,"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/posts\/35681\/revisions"}],"predecessor-version":[{"id":35682,"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/posts\/35681\/revisions\/35682"}],"wp:attachment":[{"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/media?parent=35681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/categories?post=35681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/axio.ir\/en\/wp-json\/wp\/v2\/tags?post=35681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}