Forum Replies Created

Viewing 1 replies (of 1 total)
  • this is very hacky but it worked for me. the site i am working on has 150,000 + users

    add_action( 'admin_menu', 'remove_meta_box_custom' );function remove_meta_box_custom() { remove_meta_box('authordiv', 'post', 'normal'); remove_meta_box('authordiv', 'page', 'normal');}
    add_filter('post_row_actions','remove_quick_edit',10,1);function remove_quick_edit( $actions ) { unset($actions['inline hide-if-no-js']); return $actions;}
    add_filter( 'wp_dropdown_users', 'no_dropdown_users' );function no_dropdown_users($output) { return '<select name="post_author"></select>';}
    
    function _break_user_list(&$object) {
            global $wpdb;
            $object->query_from = 'FROM '.$wpdb->posts;
            $object->where_where = 'WHERE ID=1';
    }
    if ( current_user_can('manage_options') && isset($_GET['post_type']) && ($_GET['post_type'] == 'page' || $_GET['post_type'] == 'post')) {
    	add_filter('pre_user_query', '_break_user_list');
    }

    what were doing here is breaking the users object when an admin user is looking at posts and pages listings as well as individual post and page edit screens. hacktastic but it works

Viewing 1 replies (of 1 total)