The code belongs in your functions.php file or a functionality plugin. The complete code that works for me is:
‘//* Remove the link ‘SEO’ from admin bar. It’s placed there by the plugin WordPress SEO by Yoast.
add_action( ‘wp_before_admin_bar_render’, ‘wlwp_admin_bar’ );
function wlwp_admin_bar(){
global $wp_admin_bar;
$wp_admin_bar->remove_menu(‘wpseo-menu’);
}’
It’s my first time adding code into a thread. If the code snippet doesn’t come through then take a look at this gist.
https://gist.github.com/rickrduncan/8861323#file-remove-seo-php
-rick