Skip to content

Instantly share code, notes, and snippets.

@mattyrob
mattyrob / qtags.php
Created December 22, 2011 19:42 — forked from trepmal/qtags.php
Quicktags API Test
<?php
/*
Plugin Name: Quicktags API Test
Description: Testing a few different kinds of Quicktags buttons
Author: Kailey Lampert
Author URI: http://kaileylampert.com/
*/
@mattyrob
mattyrob / wp-privacy.php
Last active July 30, 2023 19:00
Stop WordPress auto-updates and control information shared with api.wordpress.org
<?php
// you'll have to put a plugin header here
// Stop auto updated in WordPress 3.7+
add_filter( 'auto_update_core', '__return_false' );
add_filter( 'auto_update_plugin', '__return_false' );
add_filter( 'auto_update_theme', '__return_false' );
add_filter( 'auto_update_translation', '__return_false' );
// stop translation updates when updating plugins or themes
@mattyrob
mattyrob / s2_html_format_changer.php
Last active February 9, 2020 12:06
Change the default email type for Public Subscribers in Subscribe2 HTML
<?php
/*
Plugin Name: Subscribe2 HTML Format Changer
Plugin URI: http://subscribe2.wordpress.com
Description: Changes the default email type for Public Subscribers in Subscribe2 HTML
Version: 1.0
Author: Matthew Robinson
Author URI: http://subscribe2.wordpress.com
*/
<?php
/*
Plugin Name: Add Post / Page ID Column
Description: Add ID column on Post and Page listing in the ClassicPress admin area.
Author: Matt Robinson
Version: 0.1
*/
if ( is_admin() ) {
$add_admin_id = new Add_Admin_Id();