Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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();?

Viewing 1 replies (of 1 total)