Skip to content

Instantly share code, notes, and snippets.

@mastef
mastef / functions.php
Last active January 31, 2022 06:50
Pods : How to add Custom Admin Table Columns to a Pods ACT
<?php
/*
only important name is the filter name :
pods_admin_ui_PODNAME
if your pods is called "client" then call it
pods_admin_ui_client
you can rename all functions to your liking
*/
add_filter( 'pods_admin_ui_PODNAME', 'custom_admin_table_columns_for_PODNAME' );
@ideadude
ideadude / orders-print.php
Created February 26, 2018 18:32
Custom Template for the Print Invoices Page in PMPro with Notes Shown at the Bottom
<?php
/**
* Custom Template for Print Invoices
*
* Copy this file into the paid-memberships-pro/pages/ folder of your active theme's directory.
* If that folder does not exist, create it.
* Keep the name orders-print.php
*/
?>
<!doctype html>
@pacoorozco
pacoorozco / wp-update.sh
Last active March 21, 2024 09:10
Backup and update a Wordpress Site using wp-cli
#!/usr/bin/env bash
##########################################################################
# Shellscript: Backup and update WordPress using wp-cli
# Author : Paco Orozco <paco@pacoorozco.info>
# Requires : wp-cli
##########################################################################
# Changelog
# 20170125: 1.0
# Adds a default option to upgrade only when it's needed.
# 20161220: 0.1
@adamjstevenson
adamjstevenson / stripe_js_bootstrap.html
Last active April 15, 2020 07:56
Stripe.js bootstrap example -- simple
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Stripe.js example form</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h1>A simple Bootstrap Stripe.js payment form</h1>