Roman Miranda
Creating a new sheet using Apps Script
Use the following lines to create a sheet and rename the new sheet created:
Get column index by letter Apps Script
This function is useful if you use a full range from column A.
Use env variables on JS on Laravel 8
According to the documentation you can pass env vars only by adding a prefix to a variable on you .env file Then you can use that variable on your JS: Here is the link to the official documentation: Link
Troubleshooting Laravel Echo and Laravel Websockets
Uncaught You must pass your app key when you instantiate Pusher. Check you have defined your variables in the .env file with the correct prefix MIX_ or VITE_ Check you are calling the correct env variables through the process.env JS Object, the only variables that are passed to the process.env object are the prefixed ones. … Read more
Developing for bbPress
Use the bbPress Git repository to search functions or hooks, and specially useful if you are looking for something inside the templates: https://github.com/bbpress/bbPress bbPress Database bbPress use the same tables as WordPress using Custom Post Types to do the forums, topics and replies. Checkout in the docs for most details.
bbPress: set sticky first reply to the top
Set the first reply to the top of the replies in bbPress
bbPress: Add reverse order on topic replies
In bbPress this is to change the order of the replies under each topic and add a links to select the order.
Hook after subscription added to cart for Woocommerce Subscriptions
During this week I’ve been working on a special feature for one client’s store and found this useful hooks in the Woocommerce Subscriptions plugin, so I want to share what I’ve learned. If you want to do something after a subscription is added, you can use any of this four hooks: woocommerce_setup_cart_for_subscription_initial_payment woocommerce_setup_cart_for_subscription_renewal woocommerce_setup_cart_for_subscription_resubscribe woocommerce_setup_cart_for_subscription_switch … Read more
WC Subscriptions resubscribe and renewal helper functions
On Woocommerce Subscriptions there two important strategies related to subscriptions, renewals vs resubscribing. A renewal stands for a current subscription in active or on-hold status that can accept a payment to remain active or return to active. On the other side we have the resubscribe for subscriptions that are finished, on status like expired, cancelled … Read more