{"id":8207584,"date":"2016-09-21T18:50:11","date_gmt":"2016-09-21T18:50:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/change-confirmation-message-link-after-reset-password\/"},"modified":"2016-09-21T18:50:11","modified_gmt":"2016-09-21T18:50:11","slug":"change-confirmation-message-link-after-reset-password","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/change-confirmation-message-link-after-reset-password\/","title":{"rendered":"Change confirmation message link after reset password"},"content":{"rendered":"<p>Hello peeps !<\/p>\n<p>I would like to change the confirmation message link after reset password from my lost password page.<\/p>\n<p>I found the code to change in : woocommerce\/includes\/shortcodes\/class-wc-shortcode-my-account.php<\/p>\n<pre><code>\n\/**\n\t\t * After reset, show confirmation message.\n\t\t *\/\n\t\t} elseif ( ! empty( $_GET[&#039;reset&#039;] ) ) {\n\t\t\twc_add_notice( __( &#039;Your password has been reset.&#039;, &#039;woocommerce&#039; ) . &#039; &lt;a class=&quot;button&quot; href=&quot;&#039; . esc_url( wc_get_page_permalink( &#039;myaccount&#039; ) ) . &#039;&quot;&gt;&#039; . __( &#039;Log in&#039;, &#039;woocommerce&#039; ) . &#039;&lt;\/a&gt;&#039; );\n \n\t\t\/**\n<\/code><\/pre>\n<p>I don&#8217;t want to rewrite these strings directly from Woocommerce plugin.<\/p>\n<p>How can I override this from my child theme function?<\/p>\n<p>Adding a filter and an argument like &#8216;$redirect&#8217; would be the solution right?<\/p>\n<p>Cheers \ud83d\ude42<\/p>\n","protected":false},"template":"","class_list":["post-8207584","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8207584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8207584\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8207584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}