Skip to content

Instantly share code, notes, and snippets.

View penhtech's full-sized avatar

PenhTech penhtech

View GitHub Profile
@joshco
joshco / README UI_and_Logging.md
Last active March 24, 2021 13:37
TablePress AutoImport Patch

Overview

This patch adds:

  • a function to wrap the WP calls to get a URL based source and sets a 30sec timeout.
  • More detailed status information in the plugin's WP Dashboard pane on why an autoupdate failed.
  • Logging information, and a logging function, which outputs debug information when WP_DEBUG is true to help troubleshoot.

Failure case (with a timeout)

Debug Log

@louim
louim / uploads.yml
Last active December 23, 2022 14:20
Drop-in playbook for Trellis to push and pull uploads from the server to your local machine.
---
- name: Sync uploads between environments
hosts: web
remote_user: "{{ web_user }}"
vars:
project: "{{ wordpress_sites[site] }}"
project_root: "{{ www_root }}/{{ site }}"
tasks: