Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Searching for talents

Frank Bültge bueltge

:octocat:
Searching for talents
View GitHub Profile
@bueltge
bueltge / listing-13-1.php
Last active Apr 4, 2019 — forked from WordPress-Handbuch/listing-13-1.php
Plugin to include only specific plugins in the automatic updates
View listing-13-1.php
<?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 / add-rel-nofollow-checkbox.php
Created Feb 14, 2017 — forked from danielbachhuber/add-rel-nofollow-checkbox.php
Add a 'Add rel="nofollow" to link' checkbox to the WordPress link editor
View add-rel-nofollow-checkbox.php
<?php
/**
* Add a 'Add rel="nofollow" to link' checkbox to the WordPress link editor
*
* @see https://danielbachhuber.com/tip/rel-nofollow-link-modal/
*/
add_action( 'after_wp_tiny_mce', function(){
?>
<script>
View post-type--not-in.php
<?php
/**
* This class will cause WP_Query to ignore a 'post_type' parameter when 'post_type__not_in' is set.
*
* Class Post_Type__Not_In
*/
class Post_Type__Not_In {
/**
*
View deploy.sh
#! /bin/bash
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo.
# main config
PLUGINSLUG="______your-plugin-name______"
CURRENTDIR=`pwd`
MAINFILE="______your-plugin-name______.php" # this should be the name of your main php file in the wordpress plugin
# git config
View register-post-type.php
<?php
/* Register custom post types on the 'init' hook. */
add_action( 'init', 'my_register_post_types' );
/**
* Registers post types needed by the plugin.
*
* @since 0.1.0
* @access public
View en.js
// path/to/theme/tinymce/en.js
// plugin.jsと同じディレクトリに設置
tinyMCE.addI18n("en.test_plugin",{
test_listbox : "Test listbox",
test_button : "Test button",
});
@bueltge
bueltge / is_serialized.php
Created Dec 1, 2011 — forked from cs278/is_serialized.php
PHP is_serialized() function.
View is_serialized.php
<?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.
*/
/**
@bueltge
bueltge / script_deamon.php
Created Nov 13, 2011 — forked from franz-josef-kaiser/script_deamon.php
WordPress Plugin to check your DataBase for injected links
View script_deamon.php
<?php
/**
Plugin Name: AntiScript deamon
Plugin URI: https://github.com/franz-josef-kaiser
Description: Removes script-links to spam sites from your post content after your site got hacked. Please go to <a href="tools.php?page=script_deamon.php">Tools &rarr; Remove Hack</a>. Thank you. Proudly brought to you by <a href="http://example.com">Franz Josef Kaiser</a>.
Version: 0.1
Author: Franz Josef Kaiser
Author URI: https://github.com/franz-josef-kaiser
License: GPL2
WP-Version: Tested in 2.7.1, 2.9.2, 3.0
@bueltge
bueltge / email-reminder.php
Created Oct 21, 2011 — forked from chrisguitarguy/email-reminder.php
Sends an email reminder if you haven't posted on your WordPress blog in a week
View email-reminder.php
<?php
/*
Plugin Name: Reminder Emails
Plugin URI: http://www.christopherguitar.net/
Description: Sends a reminder email if you haven't posted in seven days.
Version: n/a
Author: Christopher Davis
Author URI: http://www.christopherguitar.net
License: GPL2, Creative Commons
*/
@bueltge
bueltge / widget-tut.php
Last active Dec 8, 2017 — forked from chrisguitarguy/widget-tut.php
An example of how to build your own WordPress widget
View widget-tut.php
<?php
/*
Plugin Name: FB Widget Tutorial
Plugin URI:
Description: How to create WordPress Widgets.
Version: 13/03/2013
Author: Frank Bültge
Author URI: http://bueltge.de/
License: GPLv3
*/
You can’t perform that action at this time.