Как я могу вернуть код AdSense из функции в wordpress

Я the_author_meta('pub-id', $author_id идентификатор издателя от авторов meta, т.е. the_author_meta('pub-id', $author_id

КОД

  //RECTANGLE Adsense UNit function get_rectangle() { global $post; $author_id=$post->post_author; $rec_Ad.= '<div>'; $rec_Ad.= '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- 300x250 --> <ins class="adsbygoogle" style="display:inline-block;width:300px;height:250px"'; if (get_the_author_meta('rectangle', $author_id)) { $rec_Ad.= 'data-ad-client="ca-pub-'.the_author_meta('pub-id', $author_id).'"'; $rec_Ad.= 'data-ad-slot="'.the_author_meta('rectangle', $author_id).'"></ins>'; } $rec_Ad.= '<script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div>'; } 

Вышеприведенный код возвращает идентификатор издателя, но не весь код AdSense

спасибо