Support » Plugin: WP ULike - Most Advanced WordPress Marketing Toolkit » $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)
  • Thread Starter pejalev

    (@pejalev)

    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 4 years, 9 months ago by pejalev.
    • This reply was modified 4 years, 9 months 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)
  • The topic ‘$wp_ulike_class->get_template… not working without automatic display’ is closed to new replies.