Skip to content

Instantly share code, notes, and snippets.

View bueltge's full-sized avatar
Always interested

Frank Bültge bueltge

Always interested
View GitHub Profile
@bueltge
bueltge / starter.css
Created November 26, 2025 07:44
starter.css
/**
* Minimal CSS Starter.
*
* More is not necessary, focus on speed and important thinks.
*/
::selection,
::target-text {
background: #000;
color: #fff;
}
<?php
/**
* Plugin Name: Add LodgingBusiness Schema
* Description: Implementation of LodgingBusiness to make the identity and key features of your vacation home park machine-readable for search engines and AI services such as chatbots and knowledge graphs.
* Plugin URI: https://gist.github.com/bueltge/afe3feb67f1b08ac2f4b2a6ff195d112
* Version: 1.0.0
* Author: Ferienhaus Lichtung
* Author URI: https://www.ferienhaus-lichtung.de/
* Licence: GPLv2+
*/
@bueltge
bueltge / wp-plugin-security-testing-cheatsheet.md
Created August 22, 2016 12:12
WordPress Plugin Security Testing Cheat Sheet

WordPress Plugin Security Testing Cheat Sheet

This cheat sheet was compiled by Dewhurst Security to record the knowledge gained when testing WordPress plugins for security issues for our clients. The security documentation provided by WordPress and found online for plugin security is sparse, outdated or unclear. This cheat sheet is intended for Penetration Testers who audit WordPress plugins or developers who wish to audit their own WordPress plugins.

This is a living document, feedback in the form of Issues or Pull Requests is very much welcomed.

Cross-Site Scripting (XSS)

@bueltge
bueltge / class_fb_backlink_checker.php
Last active March 21, 2025 11:51
Backlink Checker
{
"basics": {
"name": "Frank Bültge",
"label": "Human, Dad, Alpinist, Cyclist, Runner, Antifascist, Optimist. I develop, maintain and support things.",
"picture": "https://bueltge.de/wp-content/images/frank-freigestellt-272px.png",
"email": "frank@bueltge.de",
"website": "https://bueltge.de",
"summary": "I work at Syde GmbH and Zeiss AG. I help companies in making and developing business solutions for various software challenges, especially SAP and WordPress. Ben the job I'm also an alpinist, cyclist, and a fair athlete, open to all challenges.",
"location": {
"address": "Louis-Görner-Strasse 6",
@bueltge
bueltge / wp-hooks-filter.php
Created May 31, 2011 08:07
Instruments Hooks for a Page of WordPress. Outputs during the Shutdown Hook after add get-params: ?instrument=hooks
<?php
/*
Plugin Name: Instrument Hooks for WordPress
Plugin URI: http://bueltge.de/
Description: Instruments Hooks for a Page. Outputs during the Shutdown Hook after add get-params <code>?instrument=hooks</code>.
Version: 0.0.1
Author: Frank B&uuml;ltge
Author URI: http://bueltge.de/
*/
/**
* plugin.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
@bueltge
bueltge / example.php
Created April 21, 2012 21:24
WordPress Widget Order via CSS; Here is a simple filter to automatically add a class attribute like widget-order-1 to all widgets within sidebars
add_action( 'init', 'add_widget_order_class' );
function add_widget_order_class() {
global $wp_registered_sidebars, $wp_registered_widgets;
$sidebars = wp_get_sidebars_widgets();
if ( empty( $sidebars ) )
return;
foreach ( $sidebars as $sidebar_id => $widgets ) {
@bueltge
bueltge / class-taxonomy-helper.php
Created October 10, 2011 11:36
Helper Class To Add Custom Taxonomy To Post Permalinks
/**
* A helper class for registering and handling a custom rewrite tag for a custom taxonomy.
*
* @version 1.0.0
*/
class Add_Taxonomy_To_Post_Permalinks {
/**
* Stores the taxonomy slug that this class will be handling. Don't edit this.
*
@bueltge
bueltge / is_serialized.php
Created December 1, 2011 10:29 — forked from cs278/is_serialized.php
PHP is_serialized() function.
<?php
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
/**