{"id":123,"date":"2019-10-31T14:39:30","date_gmt":"2019-10-31T14:39:30","guid":{"rendered":"http:\/\/blog.davcloud.top\/?p=123"},"modified":"2020-01-26T15:48:56","modified_gmt":"2020-01-26T15:48:56","slug":"recover-links-option-in-wordpress","status":"publish","type":"post","link":"https:\/\/blog.davcloud.top\/?p=123","title":{"rendered":"Recover &#8220;links&#8221; option in WordPress"},"content":{"rendered":"\n<h2>Abstract<\/h2>\n\n\n\n<p>This article aims to record how to recover the &#8220;links&#8221; option in the admin management page of the wordpress.<\/p>\n\n\n\n<h2>Step 1. Open the function.php<\/h2>\n\n\n\n<p>Open the function.php file of the theme in using. Assume the theme named &#8220;my-theme&#8221;, the root dir of the wordpress is &#8220;wordpress&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># If the dir required root permission, add sudo at the beginning.\nvim \/wordpress\/wp-content\/themes\/my-theme\/function.php<\/code><\/pre>\n\n\n\n<h2>Step 2. Edit the file<\/h2>\n\n\n\n<p>Edit the function.php file, add the statement at the end of the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Recover the \"links\" option.\nadd_filter( 'pre_option_link_manager_enabled', '__return_true' );<\/code><\/pre>\n\n\n\n<h2>Step 3. Save the file and refresh the admin management page<\/h2>\n\n\n\n<p>Save the function.php file, and refresh the admin management page, we can see the &#8220;Links&#8221; option on the left sidebar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Abstract This article aims to record how to recover the &#8220;links&#8221; option in the admin management page of the wordpress. Step 1. Open the function.php Open the function.php file of the theme in using. Assume the theme named &#8220;my-theme&#8221;, the root dir of the wordpress is &#8220;wordpress&#8221;. Step 2. Edit the file Edit the function.php [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27],"tags":[32,31],"_links":{"self":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":5,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":752,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/752"}],"wp:attachment":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}