Remove Facebook and Twitter Custom User Authorial Info from the SEO Framework Plugin

In a few minutes you could remove the custom user fields that the SEO framework plugin adds on plugin install.

Justin Gluska

Updated August 31, 2023

Reading Time: 2 minutes

The SEO Framework plugin is a robust WordPress tool to help site owners optimize their websites for search engines. Among its features, it offers meta fields for Facebook and Twitter in the user profile section of the WordPress admin panel.

For various reasons, you might want to remove these fields. They drove me crazy because they didn't really do anything (and I use ACF to handle most user profile customization).

Problem:

The Facebook and Twitter meta fields in the user profile section can be confusing, especially when there's a need to add more social links using other plugins. Having duplicate fields for the same social networks can be redundant and clutter the user interface.

Solution:

As per the plugin's author, Sybre Waaijer, you can set the plugin to headless mode for the user section. This will hide the Facebook and Twitter meta fields.

Steps to Remove Facebook and Twitter User Meta Fields:

  1. Back up your website. Always ensure you have a current backup of your website before making any changes to its files.
  2. Access wp-config.php. This file is located in the root directory of your WordPress installation. You can access it via FTP or your web hosting control panel's file manager.
  3. Edit wp-config.php. Insert the following line of code:
define( 'THE_SEO_FRAMEWORK_HEADLESS', [ 'user' => true, 'meta' => false, 'settings' => false ] );
  1. Save and upload the file. If you edited the file offline, upload it back to the server. If you edited it online, just save the changes.
  2. Check your WordPress admin panel. Navigate to a user profile, and you should no longer see the meta fields for Facebook and Twitter.

Additional Information:

  • When you set the plugin to headless mode for users, even if the Facebook and Twitter fields were previously populated, they will be ignored.
  • The user headless mode still allows some user-specific settings, like the counter-type. You can see this feature in action by clicking on the character counter number.

With the headless mode enabled for users in the SEO Framework plugin, you can declutter the user profile section by removing unnecessary meta fields for Facebook and Twitter.

This provides a cleaner interface and avoids confusion, especially when using other plugins to manage social links. Always ensure that any changes made to your website's files are backed up to prevent potential issues. Hope this helped!

Want to Learn Even More?

If you enjoyed this article, subscribe to our free newsletter where we share tips & tricks on how to use tech & AI to grow and optimize your business, career, and life.


Written by Justin Gluska

Justin is the founder of Gold Penguin, a business technology blog that helps people start, grow, and scale their business using AI. The world is changing and he believes it's best to make use of the new technology that is starting to change the world. If it can help you make more money or save you time, he'll write about it!

Subscribe
Notify of
guest

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments