Only show the authors posts in the edit list

Insert this into your functions.php file.

This displays only the authors posts in the lists of posts to be edited.

Code Snippet:

<?php

function mypo_parse_query_useronly( $wp_query ) {
    if ( strpos( $_SERVER&#91; 'REQUEST_URI' &#93;, '/wp-admin/edit.php' ) !== false ) {
        if ( !current_user_can( 'level_10' ) ) {
            global $current_user;
            $wp_query->set( 'author', $current_user->id );
        }
    }
}

add_filter('parse_query', 'mypo_parse_query_useronly' );

?>

Posted in Admin area