Skip to content

Instantly share code, notes, and snippets.

@herewithme
herewithme / prod-images.php
Last active Mar 31, 2019
This plugin allow to build development environnement without copy data from uploads folder. Manage an failback with PHP and production assets.
View prod-images.php
<?php
/*
* Plugin Name: BEA - Prod images
* Version: 0.1
* Plugin URI: http://www.beapi.fr
* Description: This plugin allow to build development environnement without copy data from uploads folder. Manage an failback with PHP and production assets.
* Author: BeAPI
* Author URI: http://www.beapi.fr
* Domain Path: languages
* Network: false
@jmau111
jmau111 / remove_wpcustomizr.php
Last active Aug 29, 2015
Allows to remove customizr from admin. Given AS IS, use with caution :)
View remove_wpcustomizr.php
<?php
/*
Plugin Name: Bypass customizr
Description: For those who won't use customizr. I don't know why but some users want to hide customizr.
Author: TweetPressFr
Version: 1.0
*/
class Remove_WP_customizr{
@benjaminniess
benjaminniess / go-f-yourself.php
Last active May 20, 2016
A little one file WordPress plugin that will disable the authors single template (don't enable this plugin it if you use the author's template) and redirect bots that try to connect with the ''admin" username to my favorite NSFW website. Cheers!
View go-f-yourself.php
<?php
/*
Plugin Name: Go F Yourself
Description: Disable '?author=n' view and redirect people trying to login with the "admin" user
Version: 1.0
Author: Benjamin Niess
Author URI: http://twitter.com/benjaminniess
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@herewithme
herewithme / sanitize-filename.php
Created Nov 29, 2013
WordPress - No french punctuation and accents for filename
View sanitize-filename.php
<?php
/*
Plugin Name: No french punctuation and accents for filename
Description: Remove all french punctuation and accents from the filename of upload for client limitation (Safari Mac/IOS)
Plugin URI: http://www.beapi.fr
Version: 1.0
Author: BeAPI
Author URI: http://www.beapi.fr
/*