Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    I hope you are having a great day.

    Please add the following option in the functions.php of your theme to change this behaviour:

    if(!function_exists('yith_wcan_change_terms_limit')){
    function yith_change_terms_limit (){
    return 0;
    }
    add_filter('yith_wcan_dropdown_terms_per_page', 'yith_wcan_change_terms_limit' );
    }

    Please let us know if you encounter any problem using this code.

    Have a great day.

    Thread Starter kanellos

    (@kanellos)

    Hi,

    Thanks for your support. If I try to add this code, I have this error:

    Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "yith_wcan_change_terms_limit" not found or invalid function name in wp-includes/class-wp-hook.php:308
    Stack trace:...

    How can I fix?

    Thanks

    Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    There was a misspelling in the name of the function , this code instead should work:

    if(!function_exists('yith_wcan_change_terms_limit')){
    function yith_wcan_change_terms_limit (){
    return 0;
    }
    add_filter('yith_wcan_dropdown_terms_per_page', 'yith_wcan_change_terms_limit' );
    }

    Let me know if you still have any problem with the code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Number of option visible in select option’ is closed to new replies.