WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
[resolved] Remove RATING column from Admin Screens (4 posts)

  1. raonip
    Member
    Posted 1 year ago #

    Hi,

    Just updated this plugin to latest version and now Every single Post Admin Screen (Pages/Posts/Custom Post Type) I see a RATING column.

    I just use this plugin inside one Custom Post Type. Is there a way I can remove this collumn from all over the place????
    I know I can hide the colluns with the "Screen Tab", but I have many users and would have to do that for all of then.

    Any simple way for disable this colluns???

    Thanks!

    http://wordpress.org/plugins/wp-postratings/

  2. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    There is no simple way, you have to modify the code to delete this 4 lines

    https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L845-L848

  3. Eduardo Zulian
    Member
    Posted 11 months ago #

    @raonip,

    You can remove these columns through the same filters in your functions.php file:

    /**
     * Remove WP-PostRatings custom columns
     */
    function remove_ratings_column( $columns ) {
    
    	if ( array_key_exists( 'ratings', $columns ) )
    		unset( $columns['ratings'] );
    
    	return $columns;
    }
    
    add_filter( 'manage_posts_columns', 'remove_ratings_column' );
    add_filter( 'manage_pages_columns', 'remove_ratings_column' );
  4. raonip
    Member
    Posted 11 months ago #

    Hi, thanks Eduardo...

    But I really think should have a better simple way inside plugin option to Disable that.....is really annoiyng.

    Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.