I recently setup a Gravity Forms form that generates a zip download on submission. Whenever someone hits ‘submit’, a ZIP is generated based on user values. This works by hooking into gform_confirmation and returning a header(‘content-disposition: attachment; filename=file.zip’);. The entry is created, the zip download starts but.. the form becomes unusable afterwards. You cannot generate […]
Auto reload a python script on file change using nodemon
I’m working on a Discord bot with a friend of mine which runs on Python. I’m quite unfamiliar with the language but it bothered me that each time I make a change in code, I need to to restart the bot completely. I did some research and it didn’t seem like there were a lot […]
Creating a WordPress Sandbox environment that resets hourly with Cloudways
I’ve had multiple occasions where I just wanted to try something on a clean install in WordPress. Today we’re setting this up in Cloudways. Don’t have a server running yet? Click here to get started: https://www.cloudways.com/en/?id=713055 (yup, that’s an affiliate link) My requirements An environment that resets itself every hour The database is reset, as […]
Page templates not appearing in your Genesis child theme?
I just spend 15 minutes researching why my custom page template wouldn’t appear in page attributes. Everything was set correctly.. except for one thing. I hope you land here if you experience this issue, and I also hope that your child theme doesn’t contain an index.php file, because this is the fix. Make sure your […]
WordPress Cronjobs in Multisite
It’s always better to add a cronjob for running WordPress’ cronjobs. If you don’t, you’re dependent on website visits to launch cronjobs. Luckily we have wp-cli for that, the wp cron event run –due-now command will process any cronjobs in queue. If you add this to your crontab, you’re all set. Except for multisite Each […]
Permission issues with docker compose? Here’s a fix.
I’m fairly new to docker-compose but did manage to run all my local development on docker containers recently. I even setup a mini-PC that runs all these environments and allows met to quickly spin up new websites (literally seconds). Oh and did I mention that all of the websites are accessible from any device within […]
ACF: Load and save fields to a custom plugin
It’s not always that you want to save your ACF-JSON fields to your theme folder, like when you’re creating a custom plugin for a new client that depends on ACF, or when using a theme that’s not within your development. For these cases ACF has a nice function; you can filter it so that it […]
Processing bulk e-mail notifications with WordPress after a user action
I’ve been working on a BuddyPress/BuddyBoss website lately and we recently integrated custom notifications. These trigger whenever a group admin posts a message in a groups feed. All group members receive a notification when this happens. The website biggest group contains 7000 members, so this process can get quite intensive. Anyway, triggering the notification didn’t […]
Moving a multisite: Database errors & site not found.
Moving a multisite doesn’t always go with the ease you expect. I usually do this in two steps: Export the database Deploy/copy/sync the files to my new (staging) server When your files are ready and your new environment is configured it’s time to import the database. My preference goes to using WP-CLI for this. Copy […]
- « Previous Page
- 1
- …
- 8
- 9
- 10
- 11
- 12
- Next Page »