//Logout Shortcode
function logout_func ($atts, $content = null) {
	extract(shortcode_atts(array(
		'linktext' => 'Log Out',
		), $atts));
	$logoutlink = wp_logout_url( home_url() );
	 return '<a href="' . $logoutlink . '" title="Logout">'. $linktext .'</a>';
}
add_shortcode( 'wplogout', 'logout_func' );
?>

// Example Usage:
//  [wplogout linktext="YES"] - if you don't specify linktext, will just display "Log Out"