Skip to content

Instantly share code, notes, and snippets.

View tfrommen's full-sized avatar
👋
Hallo! 😀

Thorsten Frommen tfrommen

👋
Hallo! 😀
View GitHub Profile
@tfrommen
tfrommen / mlp-hide-non-public-sites.php
Last active September 15, 2015 22:38 — forked from bueltge/mlp-filter-site.php
This is a simple add-on for the MultilingualPress plugin to hide non-public sites (i.e., languages) from translation lists such as the Language Switcher widget or the Quicklinks.
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: Hide Non-public Sites
* Description: This is a simple add-on for the MultilingualPress plugin to hide non-public sites (i.e., languages) from translation lists such as the Language Switcher widget or the Quicklinks.
* Author: Inpsyde GmbH, tf
* Author URI: http://inpsyde.com
* Version: 2015-09-16
* License: GPL-3.0
* Network: true
*/
<?php
/**
* Add Gravity Forms capabilities.
*/
add_filter( 'user_has_cap',
function( $caps ) {
if ( ! empty( $caps[ 'edit_pages' ] ) )
// user has edit capabilities
foreach ( array(
'gravityforms_delete_entries',