Skip to content

Instantly share code, notes, and snippets.

View bnecreative's full-sized avatar

Kerry Kline bnecreative

View GitHub Profile
@lukecav
lukecav / functions.php
Last active February 9, 2018 21:26
Kill Gutenberg in WordPress
function kill_gutenberg_post_type( $is_enabled, $post_type ) {
if ( ‘post’ === $post_type || ‘page’ === $post_type ) {
return false; //==> add_action( ‘admin_print_scripts-edit.php’,…) ==> gutenberg_replace_default_add_new_button is disabled
}
return $is_enabled;
}
add_filter( ‘gutenberg_can_edit_post_type’, ‘kill_gutenberg_post_type’, 10, 2 ); //gutenberg_add_edit_link_for_post_type
function kill_gutenberg_modify_add_new_button_url( $url, $path ) {
@eteubert
eteubert / wordpress-passwort-reset-unmultisite.php
Last active July 10, 2024 22:46
Multisite: Passwort Reset on Local Blog
<?php
/**
* Plugin Name: Multisite: Passwort Reset on Local Blog
* Plugin URI: https://gist.github.com/eteubert/293e07a49f56f300ddbb
* Description: By default, WordPress Multisite uses the main blog for passwort resets. This plugin enables users to stay in their blog during the whole reset process.
* Version: 1.0.0
* Author: Eric Teubert
* Author URI: http://ericteubert.de
* License: MIT
*/