Skip to content

Instantly share code, notes, and snippets.

mattyrob mattyrob

Block or report user

Report or block mattyrob

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mattyrob / pot-helper.php
Last active Apr 18, 2018
PHP Script to surface WordPress i18n functions from Gutenberg blocks (Javascript)
View pot-helper.php
Script for building a php file containing the i18n strings, properly formatted for inclusion in POT file
if ( $argc < 4 ) {
echo "\nError: You must pass a domain name, an output file and at least one filename.\n";
echo "Usage: php -f [text-domain] [OUTPUT FILENAME] [INPUT filename(s)]\n\n";
} else {
mattyrob / wp-privacy.php
Last active Mar 28, 2017
Stop WordPress auto-updates and control information shared with
View wp-privacy.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 / qtags.php
Created Dec 22, 2011 — forked from trepmal/qtags.php
Quicktags API Test
View qtags.php
Plugin Name: Quicktags API Test
Description: Testing a few different kinds of Quicktags buttons
Author: Kailey Lampert
Author URI:
You can’t perform that action at this time.