Thread Starter
daffox
(@daffox)
Here is full functions code:
function shortcode( $atts ) {
extract( shortcode_atts( array('post_type' => 'post'), $atts ) );
ob_start();
if ( is_user_logged_in() ) {
$this->post_form( $post_type );
} else {
printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false ) );
}
$content = ob_get_contents();
ob_end_clean();
return $content;
}
mb conflict is with ob_start();?