{"id":8622076,"date":"2017-01-05T14:05:27","date_gmt":"2017-01-05T14:05:27","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/disable-switch-in-the-record-edit-form\/"},"modified":"2017-01-05T14:05:27","modified_gmt":"2017-01-05T14:05:27","slug":"disable-switch-in-the-record-edit-form","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/disable-switch-in-the-record-edit-form\/","title":{"rendered":"Disable Switch in the Record Edit Form"},"content":{"rendered":"<p>Hi<\/p>\n<p>I&#8217;ve found the page explaining how to make a delete switch on the record edit form &#8211; which is a nice feature. But as explained on the page there could be some troubles if a user deletes it accidentally. Is it possible to create a delete switch where the username gets changed instead of a the full deletion? And can I disable the private link while this is toggled so they can&#8217;t get access to their private page?<\/p>\n<p>This way the user information is still stored on the backend and the admin can always activate the user again if he\/she wants to get the user back. The username should be changed to &#8220;olduser_{their username}&#8221; this way they can always create a new user with the same name. <\/p>\n","protected":false},"template":"","class_list":["post-8622076","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8622076","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\/8622076\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8622076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}