Filter: Update the default author name

Would you prefer a different default author name? Now you can user this code snippet to the bottom of your functions.php file to change those up.

Replace Your New Default Author Name inside the quotes with your preferred Author Name and then save the changes.

***Before doing this, make sure that you have access to your site's files via FTP (the editor in WordPress is not sufficient in case problems arise) and that you are comfortable with editing your functions.php file. Any minor error in the functions.php file can result in the “white screen of death,” which is easily fixed via FTP but is difficult to fix otherwise (and a nuisance as your site will be unavailable until fixed).***

/**
 * Changes the author name used by default.
 */
add_filter(
	'tasty_recipes_default_author_name',
	function() {
		return 'Your New Default Author Name';
	}
);
Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support