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 / set-featured-image.php
Created June 14, 2012 12:41
Set featureed image automaticly on save post/page
@bueltge
bueltge / addquicktag_quickedit_comment.php
Created July 9, 2012 13:51
Use AddQuicktag on Quickedit of comments
<?php
/**
* Plugin Name: Use AddQuicktag on Quickedit of comments
* Plugin URI: http://bueltge.de/
* Description: Add the quicktags fomr AddQuicktag plugin to the editor of Quickedit on comments
* Author: Frank Bültge
* Version: 0.0.1
* Licence: GPLv3
* Author URI: http://bueltge.de
*/
@bueltge
bueltge / gist:3121676
Created July 16, 2012 09:03
Filter WordPress date on tables in backend
// my custom field for the author is meta_key
// the field for table, filtering is my_author
$my_post_type = 'post';
add_filter( 'manage_edit-' . $my_post_type . '_columns', 'fb_add_columns' );
add_filter( 'manage_posts_custom_column', 'fb_return_custom_columns', 10, 3 );
add_filter( 'manage_edit-' . $my_post_type . '_sortable_columns', 'fb_sortable_columns' );
@bueltge
bueltge / stick-unstick-admin-bar.php
Created July 31, 2012 08:25
WordPress Plugin, that add a stick/unstick post link to the admin bar of WordPress.
<?php
/**
* Plugin Name: Stick/Unstick post via Admin bar
* Plugin URI: http://wordpress.stackexchange.com/q/58818/6035
* Description: Add a stick/unstick post link to the admin bar of WordPress.
* Version: 1.0.0
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv3
*/
@bueltge
bueltge / author-filter-meta-box.php
Created August 1, 2012 11:27
Add a meta box to WordPress edit posts and list only authors
<?php
/**
* Plugin Name: Author Meta Box only with authors
* Plugin URI: http://wordpress.stackexchange.com/questions/60429/stop-loading-collaborators-users-on-add-new-post-or-page
* Description:
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv3
*/
add_action( 'admin_menu', 'fb_remove_author_meta_boxes' );
@bueltge
bueltge / wpse46583_save.php
Created August 1, 2012 13:30
Check for right WordPress page template on save_post hook
<?php
/**
* Plugin Name: Template Check
* Plugin URI: http://wordpress.stackexchange.com/questions/60451/check-for-page-template-on-save-post-hook/
* Description:
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv3
*/
@bueltge
bueltge / keep_me_logged_in_for_1_year.php
Created September 6, 2012 07:15
Set the time that the cookie in WordPress will be kept at 1 year.
<?php
/**
* Plugin Name: Keep me Logged In for 1 Year
* Plugin URI: http://bueltge.de/wordpress-login-unterbinden/1220/
* Description: Set the time that the cookie will be kept at 1 year.
* Version: 0.0.1
* Author: Frank B&uuml;ltge
* Author URI: http://bueltge.de/
*/
@bueltge
bueltge / fix-custom-fields-in-wp342.php
Created September 7, 2012 14:43
Implements a workaround for adding and updating custom fields in WordPress 3.4.2
<?php
/**
* Plugin Name: Fix Custom Fields in WP 3.4.2
* Version: 0.0.1
* Plugin URI: http://core.trac.wordpress.org/ticket/21829
* Description: Implements a workaround for adding and updating custom fields in WordPress 3.4.2
* Author:
* Author URI:
*/
@bueltge
bueltge / add-blog-id.php
Created October 4, 2012 09:51
View Blog and User ID in WordPress Multisite
<?php
/**
* Plugin Name: Add Blog and User ID on Network
* Plugin URI: http://wpengineer.com/2188/view-blog-id-in-wordpress-multisite/
* Description: View Blog and User ID in WordPress Multisite
* Version: 1.0.0
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv3
*/
@bueltge
bueltge / wpse71248-del-revisions.php
Created November 5, 2012 13:21
WordPress SE 71248: Delete revisions on post publish
<?php
/**
* Plugin Name: WPSE71248 Delete Revions on Publish Posts
* Plugin URI: http://wordpress.stackexchange.com/questions/71248/
* Description:
* Version: 1.0.0
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv3
*/