Support » Plugin: WP-PostRatings » Adding Defualt Post Rating to all posts

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

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

    Line 543:
    Replace: add_post_meta($post_ID, 'ratings_users', 0, true);
    With: add_post_meta($post_ID, 'ratings_users', 1, true);

    Line 544:
    Replace: add_post_meta($post_ID, 'ratings_score', 0, true);
    With: add_post_meta($post_ID, 'ratings_score', 4, true);

    Line 545:
    Replace: add_post_meta($post_ID, 'ratings_average', 0, true);
    With: add_post_meta($post_ID, 'ratings_average', 4, true);

    Do note that if you replace/upgrade the plugin this change will be gone

    sakthig

    (@sakthig)

    Thanks lebester chan.i will try this

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Defualt Post Rating to all posts’ is closed to new replies.