Skip to content

Instantly share code, notes, and snippets.


ibes ibes

View GitHub Profile
ibes / content-teams.php
Created Jan 26, 2019
Building Content Teams with WP User Groups and Custom User Roles -
View content-teams.php
* Plugin Name: Content Teams
* Plugin URI:
* Description: Putting together the pieces of Chris Reynolds tutorial to create Content Teams
* Version: 0.1.0
* Author: Sebastian Gärtner original by Chris Reynolds
* Author URI:
* Text Domain: wds
* License: GPL-2.0+

Keybase proof

I hereby claim:

  • I am ibes on github.
  • I am ibes ( on keybase.
  • I have a public key whose fingerprint is 055D A09D 2155 0C23 669B 8313 8942 6064 C685 2682

To claim this, I am signing this object:

ibes /
Last active Jun 20, 2018
Install Beans in WordPlate

Use Beans with WordPlate

What is WordPlate?

"WordPlate is a modern WordPress stack built with Composer. It simplifies the fuzziness around WordPress development." - that is, what they say on their website

I don't yet work with it in production but what I saw so far is brilliant. It has a similar approach to Bedrock. WordPlate offers a folder structure and a setup that enables you to manage your WordPress installation via Composer.

What is Composer?

ibes / remove-taxonomie-slugs.php
Last active Apr 19, 2017
If you want to have cleaner URLs and want to delete the taxonomy part of the url
View remove-taxonomie-slugs.php
// add to functions.php
// thanks to:
add_filter('request', 'rudr_change_term_request', 1, 1 );
function rudr_change_term_request($query){
$tax_names = array('manufacturer', 'product_cat');
// specify you taxonomy name here, it can be also 'category' or 'post_tag'
View meta field
* Generated by the WordPress Meta Box generator
* at
function produktslogan_get_meta( $value ) {
global $post;
$field = get_post_meta( $post->ID, $value, true );
if ( ! empty( $field ) ) {
ibes / Facebook.php
Created Jan 9, 2015
Count shows shares + likes
View Facebook.php
namespace Heise\Shariff\Backend;
class Facebook extends Request implements ServiceInterface
public function getName()
return 'facebook';
ibes / array2csv.php
Created Sep 24, 2013
Custom Array to CSV function.
View array2csv.php
* create CSV file from address data
* @var array Address Data
* @return string formated CSV file
function createCsv($address) {
View Attachments2FileUpload-0-1-alpha2.php
define('VERSION', '0.1');
* Vanilla Attachments to FileUpload Porter
* This is not an official Vanilla Plugin, Layout was taken from Vanilla 2 Exporter
* This script puts Vanilla1 Attachment files to Vanilla 2 FileUpload
* see for more information
* The function of this script comes from user rayk.
* brought to PHP and made more user friendly by user vegano
View attachments-to-fileUpload.php
/* Someone should write an GUI for that.
* a form with files:
* csv_path, path to attachments-files, path to fileUpload-folder, checkbox wether it's a testrun or files should be copied, dispersion-factor
* What does this script?