Support » Plugin: WP ULike » $wp_ulike_class->get_template… not working without automatic display

  • $wp_ulike_class->get_template( $parsed_args, 0 ); and also return apply_filters(‘wp_ulike_login_alert_template’,… in function wp_ulike( $type = ‘get’, $args = array() ) (from general-functions.php line 719) not working without automatic display (posts).

    So, if I put with php code the like button to my site (if(function_exists(‘wp_ulike’)) wp_ulike(‘get’);), I vainly set Like Button or Alert Box to Users Login Type, the likebox will not appering for the unregistered visitors.

Viewing 2 replies - 1 through 2 (of 2 total)
  • SOLVED:
    before the $wp_ulike_class->get_template( $parsed_args, 0 ); and the apply_filters(‘wp_ulike_login_alert_template’, … there is — return — in the code, but these works with echo.

    Must replace the line 765 in wp-ulike/inc/general-functions.php:
    return $wp_ulike_class->get_template( $parsed_args, 0 ); —-> to
    echo $wp_ulike_class->get_template( $parsed_args, 0 );

    … and also the second after else.

    Now works perfect!

    • This reply was modified 5 months, 1 week ago by  pejalev.
    • This reply was modified 5 months, 1 week ago by  pejalev.
    Plugin Author Alimir

    (@alimir)

    Hi @pejalev
    Thanks for your report & sorry for my late answer.
    This problem has been fixed in the latest version. (+V3.4)

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