Skip to content

Instantly share code, notes, and snippets.

@rumspeed
rumspeed / paid-memberships-pro-add-custom-fields.php
Created December 4, 2016 22:07
Paid Memberships Pro - Register Helper Fields
<?php
/*
Plugin Name: Paid Memberships Pro - Register Helper Fields
Description: Add custom fields to the Member Register page and User Profile
Version: 1.0.0
Author: Rumspeed
Author URI: http://www.rumspeed.com
*/
@rumspeed
rumspeed / img4web-loop.sh
Last active July 17, 2021 17:50
Raspberry Pi - Bash Scripts for timelapse camera
#!/bin/bash
# take a photo every 5 seconds and copy it to another computer
while true
do
raspistill -n -w 1920 -h 1080 -t 3000 -o img4web.jpg
scp img4web.jpg [email protected]:/var/www/html
sleep 5
done
@rumspeed
rumspeed / mercator_add_site_settings_tab.php
Created June 3, 2022 14:49
Mercator - Add Site Settings Tab
add_filter( 'network_edit_site_nav_links', 'mercator_add_settings_tab' );
function mercator_add_settings_tab( $tabs ) {
// add a new tab to the Edit Site area for Sites
$tabs['mercator-aliases-nav-link'] = array(
'label' => 'Aliases',
'url' => 'admin.php?action=mercator-aliases',
'cap' => 'manage_sites'
);