Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

That value is set on a per user basis and saved as user meta. We can intercept and modify it to a fixed value using the filter get_{$meta_type}_metadata.

Create a Must Use plugin and it will be active in all the Network:

add_filter( 'get_user_metadata', 'comments_per_page_wpse_95420', 10, 4 );

function comments_per_page_wpse_95420( $check, $object_id, $meta_key, $single )
{ 
    if( 'edit_comments_per_page' == $meta_key )
        return 999;

    return $check;
}

Related Q&A: How to list ALL Pages in the dashboard?How to list ALL Pages in the dashboard?

That value is set on a per user basis and saved as user meta. We can intercept and modify it to a fixed value using the filter get_{$meta_type}_metadata.

Create a Must Use plugin and it will be active in all the Network:

add_filter( 'get_user_metadata', 'comments_per_page_wpse_95420', 10, 4 );

function comments_per_page_wpse_95420( $check, $object_id, $meta_key, $single )
{ 
    if( 'edit_comments_per_page' == $meta_key )
        return 999;

    return $check;
}

Related Q&A: How to list ALL Pages in the dashboard?

That value is set on a per user basis and saved as user meta. We can intercept and modify it to a fixed value using the filter get_{$meta_type}_metadata.

Create a Must Use plugin and it will be active in all the Network:

add_filter( 'get_user_metadata', 'comments_per_page_wpse_95420', 10, 4 );

function comments_per_page_wpse_95420( $check, $object_id, $meta_key, $single )
{ 
    if( 'edit_comments_per_page' == $meta_key )
        return 999;

    return $check;
}

Related Q&A: How to list ALL Pages in the dashboard?

Source Link
brasofilo
  • 22.1k
  • 8
  • 69
  • 264

That value is set on a per user basis and saved as user meta. We can intercept and modify it to a fixed value using the filter get_{$meta_type}_metadata.

Create a Must Use plugin and it will be active in all the Network:

add_filter( 'get_user_metadata', 'comments_per_page_wpse_95420', 10, 4 );

function comments_per_page_wpse_95420( $check, $object_id, $meta_key, $single )
{ 
    if( 'edit_comments_per_page' == $meta_key )
        return 999;

    return $check;
}

Related Q&A: How to list ALL Pages in the dashboard?