Skip to content

Instantly share code, notes, and snippets.

@byjg
Created September 12, 2017 15:27
Show Gist options
  • Save byjg/74300528fd49125b4dd23068d30e7a46 to your computer and use it in GitHub Desktop.
Save byjg/74300528fd49125b4dd23068d30e7a46 to your computer and use it in GitHub Desktop.
function add_meta_tags()
{
global $data;
if(!is_null($data['metas']['page_meta_description']) )
{
echo '<meta name="description" content="'.$data['metas']['page_meta_description'].'">';
}
}
add_action('wp_head', 'add_meta_tags');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment