Mireia Balaguer
Forum Replies Created
-
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.
Forum: Plugins
In reply to: [Language Switcher for Transposh] Where are the settingsThank you, I found it on my own eventually ??
It would make more sense if it appeared inside the Transposh Dropdown, though.Regards,
MireiaForum: Plugins
In reply to: [First payment date for WooCommerce Subscriptions] Hide Trial PeriodThe 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.
Forum: Plugins
In reply to: [First payment date for WooCommerce Subscriptions] Hide Trial PeriodI know, I was just sharing my solution in case someone else has the same problem.
Forum: Plugins
In reply to: [First payment date for WooCommerce Subscriptions] Hide Trial PeriodThank 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; }