WordPress.org

Ready to get started?Download WordPress

Forums

GD Star Rating
hook to rating (1 post)

  1. sagive
    Member
    Posted 5 months ago #

    Hey mate, i love this plugin! ;)

    i am trying to hook to the rating action... what i got is this:

    add_action( 'gdsr_vote_rating_article', 'ajax_gstarating_miniupdate'); // ajax for logged in users
    function ajax_gstarating_miniupdate() {
    
    	$post_id		=	$_GET['vote_id'];
    	$vote			=	$_GET['vote_value'];
    
            // DOIND SOME ACTION HERE
    
    }

    The problam is that when i use this the rating stars dont reapear after the vote... the ajax loading gif keeps returning... i tried to hook at a later point meaning:

    add_action( 'gdsr_vote_rating_article', 'ajax_gstarating_miniupdate', 99);

    But it stil doesnt help. Any ideas why this happens? how can i fix it?

    https://wordpress.org/plugins/gd-star-rating/

Reply

You must log in to post.

About this Plugin

About this Topic