如何从wordpress插件将元数据添加到页面的head部分?

I am writing a wordpress plugin and need to add some meta tags to the head section of the page from within my plugin. Does anyone know how I would do this?

Thanks

Yes you can add an action hook to wp_head like this:

add_action('wp_head', myCallbackToAddMeta);
function myCallbacktoAddMeta(){
  echo "\t<meta name='keywords' content='$contents' />
";
}