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 / listing-13-1.php
Last active July 13, 2026 15:49 — forked from WordPress-Handbuch/listing-13-1.php
Plugin to include only specific plugins in the automatic updates
<?php
/**
* Plugin Name: Control plugin update.
* Description: xyz
* Plugin URI: https://wpbuch.com/listing-13-1
* Version: 1.0.0
* Author:
* Author URI:
* Licence: GPLv2+
*/
@bueltge
bueltge / emoji-removel.php
Last active March 25, 2019 08:16
Remove the Emoji Support in WordPress. #performance
<?php declare(strict_types=1);
/**
* Plugin Name: Emoji Removel.
* Description: Remove all Emoji support to laod faster on back - and front-end.
*/
add_action(
'init',
function () {
remove_action('wp_head', 'print_emoji_detection_script', 7);
@bueltge
bueltge / disable-rest-api.php
Last active April 30, 2020 04:22
Disable WordPress REST API for users, there have not enough rights
<?php # -*- coding: utf-8 -*-
declare(strict_types=1);
/**
* Plugin Name: Disable REST API
*/
// Completely disable wp-json access.
add_filter(
'rest_authentication_errors',
function () {
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: Gutenberg Add Formatting
* Description: Add formatting button in Gutenberg.
* Plugin URI:
* Version: 0.0.1
* Author:
* Author URI:
* Licence: MIT
* Text Domain:
@bueltge
bueltge / authenticator_valeries_add_exclude.php
Last active July 10, 2018 11:47
Valéries Authenticator Plugin to exclude pages
<?php
/**
* Plugin Name: Valéries Authenticator Plugin to exclude pages
* Plugin URI: https://github.com/bueltge/Authenticator
* Description: This plugin extends the Authenticator plugin to exclude pages from the .
* Author:
* Version: 2018-07-10
* Author URI:
* License: GPLv3+
* License URI: ./assets/license.txt
@bueltge
bueltge / stop-ip-comment-storing.php
Last active May 25, 2018 07:27
Stop Save IP Address on WordPress Comment
<?php # -*- coding: utf-8 -*-
declare( strict_types = 1 );
/**
* Plugin Name: Stop Save IP Adress on Comment
* Plugin URI: https://gist.github.com/bueltge/d0126eee91c0c17e80ad57e34e339a11
* Description: Stop Storing IP Addresses with WordPress Comments.
* Version: 2018-05-25
* Author: Frank Bültge
* Author URI: https://bueltge.de
* License: MIT
@bueltge
bueltge / tampermonkey-xdebug-css-addon.js
Last active May 17, 2018 06:08
Tampermonkey script to restyle xDebug Output
// ==UserScript==
// @name xDebug Restyling
// @namespace localhost
// @version 0.1
// @description Restyling Xdebug output
// @author Frank Bueltge
// @match http://*localhost/*
// @grant none
// ==/UserScript==
@bueltge
bueltge / readme.md
Last active June 29, 2021 05:46
Static PHP7 analyses with Phan and PHP 7 Migration Assistant Report (MAR), PHP 5 to PHP7 Migration Tools

Phan

Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness. github.com/phan/phan

Install via Composer

composer require --dev phan/phan

note: php-ast is necessary (sudo apt install php-ast)

Help

@bueltge
bueltge / PortSwitch.php
Last active March 25, 2021 14:52
Port switch to get an workaround to use WordPress Multisite also without the default port 80.
<?php # -*- coding: utf-8 -*-
declare( strict_types = 1 );
/**
* Plugin Name: Port Switch
* Plugin URI: https://gist.github.com/bueltge/51013ab809f5f0f5e305c70c2d393fff
* Description: Port switch to get an workaround to use WordPress Multisite also without the default port 80.
* Version: dev
* Author: Frank Bültge
* Author URI: https://bueltge.de
* License: MIT
@bueltge
bueltge / plugin.php
Last active August 18, 2017 13:47
Get WP Posts via REST API
<?php
class foo {
/**
* Return sites of MU.
* $sites object
*/
public function get_sites() {
$sites = get_sites();