Support » Fixing WordPress » user_can_post is not recognising user anymore

  • This has stopped working out of the blue.
    Once the user logs in and tries to create a post, he gets a blank page whereas he used to get a message.
    The code responsible for it is this

    <?php 
    $user = globo_user_data();               
    $user_can_post = globo_check_user_can_post( $user['id'] );               
    //  $user_can_post = false;
    if( $user_can_post ):  ?>
    
    [...container bla bla...]
    
    <?php  
    else:  
    _e('<div class="callout callout-danger"><h6>my message</h6></div>','globo');
    endif;                    
    ?>

    but how come has it stopped?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.