Abstract
This article aims to record how to recover the “links” 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 “my-theme”, the root dir of the wordpress is “wordpress”.
# If the dir required root permission, add sudo at the beginning.
vim /wordpress/wp-content/themes/my-theme/function.php
Step 2. Edit the file
Edit the function.php file, add the statement at the end of the file:
# Recover the "links" option.
add_filter( 'pre_option_link_manager_enabled', '__return_true' );
Step 3. Save the file and refresh the admin management page
Save the function.php file, and refresh the admin management page, we can see the “Links” option on the left sidebar.