Support » Plugin: WP ULike » Use within a forum (Asgaros Forum)

  • a.neises

    (@aneises)


    If you put “Like” in a certain post to a forum topic, it will be the same value in all the posts.

    I´m using the shortcode [wp_ulike]

    Is it possible to pass a variable?

    Just in a function just like

    function my_rating($authorID, $postID) {
        echo do_shortcode('[wp_ulike] post_id="'.$postID.'"]');
    }
    
    add_action('asgarosforum_after_post_message', 'my_rating', 10, 2);

    May someone has a hint for me…
    Andreas

Viewing 1 replies (of 1 total)
  • Plugin Author Alimir

    (@alimir)

    @aneises sorry for late reply.

    Please make clear what you mean at the first paragraph of your topic. (An online demo helps a lot)

    Yes, you pass custom variables to the main functions. e.g
    wp_ulike( 'get', array( "id" => $post_ID ) );

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.