How to Override Yoast Meta Description

Last updated on

You can use wpseo_metadesc to have your own custom meta description. Just paste the following into functions.php.

// custom meta description
function filter_wpseo_metadesc( $wpseo_replace_vars ) {
    return "your custom meta desc here!";

// add the filter
add_filter( 'wpseo_metadesc', 'filter_wpseo_metadesc', 10, 1 );

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

Leave a reply

Your email address will not be published. Required fields are marked *