Skip to content

Instantly share code, notes, and snippets.

@sergejmueller
sergejmueller / functions.php
Last active December 6, 2018 01:11
WordPress: Disable Post-by-Email configuration and functionality
<?php
add_filter('enable_post_by_email_configuration', '__return_false');
@swissspidy
swissspidy / language-updates-table.php
Last active April 4, 2020 11:20
Display a table with available translation updates on the WordPress update screen
<?php
/**
* Plugin Name: Translation Updates Table
*
* @author Pascal Birchler <pascal@required.ch>
* @license GPL2+
*/
/**
* Displays a table with available translation updates.
@glueckpress
glueckpress / wpseo-iconfix.php
Last active October 2, 2018 23:12 — forked from krafit/wpseo-iconfix.php
[WordPress] Nachdem der Schmerz, den wpSEO-Menüpunkt ansehen zu müssen zu groß wurde, hat @krafit das Icon im Admin-Menü ersetzt. Ich hab’s in ein Plugin gewickelt, Torsten hat’s aktualisiert.
<?php
/**
* Plugin Name: wpSEO Icon Fix
* Description: Admin icon hack for wpSEO.
* Version: 2018.08
* Author: Simon Kraft, Caspar Hübinger, Torsten Landsiedel
* License: GNU General Public License v3
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
@glueckpress
glueckpress / Comprehensive-GitHub-Labels.md
Last active September 28, 2017 18:36
Leverage GitHub issue tracker labels for better workflows. https://waffle.io/ FTW!

Comprehensive GitHub Labels

A style guide for using GitHub issue tracker labels effectively for basic project management in the context of collaboration on open source web software (e.g. a WordPress plugin).

Colors and Notation

Color/Notation Purpose
red problems
yellow holdups
@glueckpress
glueckpress / multisite-custom-my-sites-menu-titles.php
Last active September 1, 2022 20:50
[WordPress] Custom site titles for the My Sites network admin bar menu in a multisite network. Configure first function, then auto-activate by saving this file in wp-content/mu-plugins, or network activate as a regular plugin.
<?php
/**
* Plugin Name: Custom My Sites Menu Titles
* Description: Custom site titles for the My Sites network admin bar menu. Multisite only.
* Version: 2015.11
* Author: Caspar Hübinger
* Author URI: https://profiles.wordpress.org/glueckpress
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
@grappler
grappler / Theme-review-links
Last active May 19, 2022 06:08
WordCamp Köln Contributor Day Theme Review Info Links
@advancedwpuser
advancedwpuser / functions.php
Created May 16, 2015 17:02
Dynamically Enable/Disable Search Engines when using MigrateDB Pro
/*
* Migrating your DB with Migrate DB Pro
* your "Disable Search Engines" setting
* can get pushed to your live site
* This is how you can automate that
* Ref: https://deliciousbrains.com/tweaking-wp-migrate-db-pro-actions-filters/
* AWP Link: https://www.facebook.com/groups/advancedwp/permalink/951660888229459/
* Care of Chris Perryman www.revelationconcept.com
*/
@zottto
zottto / .htaccess
Last active December 7, 2018 11:20
Mehr Sicherheit in WordPress durch .htaccess
# Beispiel-Codeschnipsel für die WordPress-htaccess-Datei
# https://www.wp-sicherheit.info
# Marc Nilius, info@wp-sicherheit.info
# Mit Material von Zodiac1978, siehe auch https://gist.github.com/Zodiac1978/d25a8f3aebba7cd1c01c
#
# Diese Codeschnipsel gehören in die .htaccess-Datei im Hauptverzeichnis von WordPress
# Jeder einzelne Bestandteil kann einzeln kopiert und genutzt werden.
# Bitte die Verwendungshinweise (Kommentare) an jedem Schnipsel beachten
@alexstone
alexstone / slack_notification.php
Created March 3, 2014 06:54
Fire a Slack Notification via CURL
<?php
// (string) $message - message to be passed to Slack
// (string) $room - room in which to write the message, too
// (string) $icon - You can set up custom emoji icons to use with each message
public static function slack($message, $room = "engineering", $icon = ":longbox:") {
$room = ($room) ? $room : "engineering";
$data = "payload=" . json_encode(array(
"channel" => "#{$room}",
"text" => $message,