Extract comma separated emails from string
Extract email addresses from string and make sure to get only email address:
What happen when you change pricing on a Woocommerce Subscription plan?
WooCommerce Subscriptions is a popular plugin for creating and managing recurring payment plans for digital or physical products on a WooCommerce store. It allows store owners to offer their customers the convenience of automatic billing and the flexibility to change their subscription plan at any time. However, changing the pricing on a WooCommerce Subscription plan … Read more
WordPress Snippet: Change user’s role by username or email address
Here is a sample PHP code snippet to change the role of multiple users in WordPress based on their username: Replace [username1, username2, …] with the usernames of the users you want to change the role for and [new_role] with the new role you want to assign to the users. If you want to select … Read more
Creating a new sheet using Apps Script
One of the most basic tasks you can perform with Apps Script is creating a new sheet. In this post, we’ll show you how to create a new sheet using Apps Script in Google Sheets. 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.