每次换主题后找半天这个代码,今天记录在此!
在当前使用的主题文件functions.php中添加以下代码:

add_filter( 'pre_option_link_manager_enabled', '__return_true' );