Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yep, I’m also encountering the same problem just today:

    
    Warning: array_map(): Expected parameter 2 to be an array, bool given in /web/wp-content/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 192 
    
    Warning: array_map(): Expected parameter 2 to be an array, bool given in /web/wp-content/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 192 
    
    Warning: array_column() expects parameter 1 to be array, null given in /web/wp-content/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 236 
    
    Warning: array_filter() expects parameter 1 to be array, null given in /web/wp-content/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 236 
    
    Warning: count(): Parameter must be an array or an object that implements Countable in /web/wp-content/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 236
    

    Good to know I’m know alone, and hopefully support can shed some light into this.

    Thread Starter Mireia Balaguer

    (@ireth92)

    Thank you, I found it on my own eventually ??
    It would make more sense if it appeared inside the Transposh Dropdown, though.

    Regards,
    Mireia

    Thread Starter Mireia Balaguer

    (@ireth92)

    The easier way to add the code is to install a plugin called Snippets which allows you to add bits of code as if it was in the functions.php file, but without needing a child theme.

    Thread Starter Mireia Balaguer

    (@ireth92)

    I know, I was just sharing my solution in case someone else has the same problem.

    Thread Starter Mireia Balaguer

    (@ireth92)

    Thank you Javier,

    You pointed me in the right direction, but I ended up taking a different approach. I changed the text from “with a free trial of (x days)” to “starting in (x days)”, so it makes sense now.

    Here’s my code: (Beware the example below is for the spanish translation).

    add_filter('woocommerce_subscriptions_product_price_string', 'woo_change_subscriptions_product_price_string' );
    function woo_change_subscriptions_product_price_string( $subscription_string ) {
    
            $subscription_string = str_replace( 'con una prueba gratuita de un', "a empezar en", $subscription_string );
    
            return $subscription_string;
    }
Viewing 5 replies - 1 through 5 (of 5 total)