WordPress.org

Ready to get started?Download WordPress

Forums

Meta Slider
[resolved] disable user access (4 posts)

  1. zeek333
    Member
    Posted 10 months ago #

    how to disable author and editor to access meta-slider

    i disabled in Advanced Access Manager but still comes up under editor

    http://wordpress.org/extend/plugins/ml-slider/

  2. zeek333
    Member
    Posted 9 months ago #

    how to adjust this function to hide meta slider for other users?

    function my_files_only( $wp_query ) {
    if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/upload.php' ) !== false ) {
    if ( !current_user_can( 'level_5' ) ) {
    global $current_user;
    $wp_query->set( 'author', $current_user->id );
    }
    }
    }
    add_filter('parse_query', 'my_files_only' );

  3. ajmcfadyen
    Member
    Posted 9 months ago #

  4. zeek333
    Member
    Posted 9 months ago #

    managed thanks

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.