Come limitare la schermata WordPress degli articoli per mostrare all’autore solo i suoi articoli

772 Views
Comments (2 Comments)

Comments (2 Comments)

  • Stefano Evangelisti
    28 January 2018

    Ciao Peter, molto interessante il plugin proposto.
    Mi chiedevo ma se voglio nascondere gli articoli di altri solo a: sottoscritti e collaboratori, dove devo variare il codice?

  • peterwebdesign
    29 January 2018

    ciao Stefano

    al posto dell’ IF if ( !current_user_can( ‘update_core’ ) ) dovresti mettere:

    global $current_user;
    $wp_query->set( ‘author’, $current_user->id );

    saluti

  • Leave a comment

    Your email address will not be published. Required fields are marked *


    The reCAPTCHA verification period has expired. Please reload the page.