bbPress: set sticky first reply to the top
Set the first reply to the top of the replies in bbPress
Web Developer
Set the first reply to the top of the replies in bbPress
In bbPress this is to change the order of the replies under each topic and add a links to select the order.
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
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
Esta es una API muy antigua pero todavía funciona muy bien y sirve bien para proyectos sencillos donde necesitas cobrar por suscripciones y con la posibilidad de automatizar usando Paypal IPN (Instant Payment Notifications). Paypal permite hacer botones para: Pagar ahora Suscripciones Donaciones Un ejemplo sencillo de como se puede crear un botón de pagar … Read more
This week I was trying to migrate a single database from MySQL 8 server with replication to my local MariaDB installation (no replica) and I got this error: And when I tried to import the dumped file, I got this error: I Google it to understand the error and I found is about GTID which … Read more
Recently I found with this issue on Livewire when I add an property to a wire:model as an array of ids it automatically transform the content into integers. After clicking on the checkboxes it become something like this: The issue is caused by the Javascript compare for Array.includes() where 1 == “1” returns false. Here … Read more
Create and share beautiful images of your source code. Start typing or drop a file into the text area to get started. https://carbon.now.sh/
Today I’ve been trying the Monica package and it requires the redis.so extension. I started installing using PECL binary for the PHP version I’m using: That’s it, this should be copying redis.so to the loading modules directory. Troubleshooting Library not loaded: libreadline.7.dylib If you see this error when running the PECL to install redis: You … Read more
Many times I found me in the scenario where I need to use different versions for PHP at the same time for different projects. So here is a tiny guide of how to do this in the easy way. First install different versions for php using Homebrew (If you haven’t installed Homebrew, just follow the … Read more