Skip to content

Instantly share code, notes, and snippets.

View cfoellmann's full-sized avatar
🐶
Dogging on

Christian Foellmann cfoellmann

🐶
Dogging on
  • W&S Technik GmbH
  • Castrop-Rauxel, NRW, Germany
View GitHub Profile
@mikedamage
mikedamage / harvest-growler.user.js
Created November 17, 2010 19:29
Fluid userscript for Harvest Timer app. Pops a Growl notification every so often to remind me to track my hours if no timer is currently running.
// ==UserScript==
// @name Harvest Timer Growl Reminder
// @namespace http://harvestapp.com
// @description Displays Growl notifications at a user defined interval, reminding you to track your time.
// @include *
// @author Mike Green
// @version 0.1.1
// ==/UserScript==
(function () {
@chrisguitarguy
chrisguitarguy / cpt-permalinks.php
Created October 10, 2011 17:28
How to add fields to the WordPress permalinks page
@markjaquith
markjaquith / gist:2628225
Last active March 29, 2023 23:30
Script to sync WordPress SVN to GitHub
#!/bin/bash
# cd into the directory
cd ~/gitsync/github-wordpress-sync/;
# Make sure we are not already running
if [ -f .sync-running ];then
if test ! `find ".sync-running" -mmin +10`;then
# Currently running, but not stuck
exit 1;
fi
fi;
@kasparsd
kasparsd / wordpress-plugin-svn-to-git.md
Last active June 2, 2025 17:14
Using Git with Subversion Mirroring for WordPress Plugin Development
@bueltge
bueltge / add-blog-id.php
Created October 4, 2012 09:51
View Blog and User ID in WordPress Multisite
<?php
/**
* Plugin Name: Add Blog and User ID on Network
* Plugin URI: http://wpengineer.com/2188/view-blog-id-in-wordpress-multisite/
* Description: View Blog and User ID in WordPress Multisite
* Version: 1.0.0
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv3
*/
<?php
/**
* Plugin Name: Deny Giant Image Uploads
* Description: Prevents Uploads of images greater than 3.2MP
* Author: TJNowell
* Author URI: http://tomjn.com
* Plugin URI: http://tomjn.com/164/clients-who-upload-huge-camera-photos-decompression-bombs/
* Version: 1.1
*/
@jasonrhodes
jasonrhodes / wp-composer.php
Created May 25, 2013 17:15
WordPress + Composer integration prototype
<?php
/**
* Plugin Name: WP Composer
* Require: something @ >=4.0, another @ latest
*/
add_action('extra_plugin_headers', function ($headers) {
$headers['Require'] = 'Require';
return $headers;
});
@franz-josef-kaiser
franz-josef-kaiser / wpmail_exceptions.php
Last active May 28, 2024 07:30
WP Mail Error/Exception handling and SMTP settings
<?php
defined( 'ABSPATH' ) OR exit;
/**
* Plugin Name: (WCM) PHPMailer Exceptions & SMTP
* Description: WordPress by default returns <code>FALSE</code> instead of an <code>Exception</code>. This plugin fixes that.
*/
add_action( 'phpmailer_init', 'WCMphpmailerException' );
function WCMphpmailerException( $phpmailer )
{
@franz-josef-kaiser
franz-josef-kaiser / limit_admin_post_list_fields.php
Created July 3, 2013 13:04
Speed up the post list views in WordPress admin UI screens. Reduce the queried fields to what is needed to display the posts and what "Quick Edit" needs. Saved time increases with a higher limit set for `posts_per_screen` in the screen options drop down.
<?php
defined( 'ABSPATH' ) OR exit;
/**
* Plugin Name: (WCM) Faster Admin Post Lists
* Description: Reduces the queried fields inside WP_Query for WP_Post_List_Table screens
* Author: Franz Josef Kaiser <[email protected]>
* AuthorURL: http://unserkaiser.com
* License: MIT
*/
@franz-josef-kaiser
franz-josef-kaiser / wcm_fields.class.php
Created July 25, 2013 21:16
(WCM) Fields - A set of classes to build reusable form fields, labels, descriptions and tables. This is work in progress. The final version (which will possibly never happen), will be used in the WordPress admin UI. But lots of the code should be reusable in some standalone solution as well, as it mainly utilizes the DOMDocument class and similar.
<?php
namespace WCMFields;
defined( 'ABSPATH' ) OR exit;
/**
* Plugin Name: (WCM) Fields
* Plugin URl:
* Description: <strong>Needs PHP 5.3+!</strong>
* Author: wecodemore, Franz Josef Kaiser
* Author URl: http://unserkaiser.com