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 );
1 Star2 Stars3 Stars4 Stars5 Stars 5.00 (1 votes)

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

p.s. I increased my AdSense revenue by 68% using AI 🤖. Read my Ezoic review to find out how.

Leave a Reply

avatar
  Subscribe  
Notify of