Skip to content

Instantly share code, notes, and snippets.

View fillipetech's full-sized avatar

Fillipe Amorim fillipetech

View GitHub Profile
jQuery('.notice > p:contains("Welcome to SEOPress PRO!")').parent().remove();
@fillipetech
fillipetech / dns_prefetch_domains.txt
Created September 12, 2019 13:31
DNS Prefetch domains
//maps.googleapis.com
//maps.gstatic.com
//fonts.googleapis.com
//fonts.gstatic.com
//ajax.googleapis.com
//apis.google.com
//google-analytics.com
//www.google-analytics.com
//ssl.google-analytics.com
//youtube.com
@fillipetech
fillipetech / Create meta box
Created December 19, 2019 04:45 — forked from tacensi/Create meta box
Create Meta Field
<?php
/**
* Plugin Name: Movie Review - Atores
* Plugin URI: https://example.com/plugins/the-basics/
* Description: Acrescenta uma metabox para preenchimento dos atores para um blog de review de cinema
* Version: 20190625
* Author: WP&etc
* Author URI: https://wp.etc.br/
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@fillipetech
fillipetech / metabox-multiple.php
Created February 20, 2020 11:36 — forked from cferdinandi/metabox-multiple.php
Create a metabox with multiple fields
<?php
/**
* Create a metabox with multiple fields.
* Replace `_namespace` with some namespace for your project to avoid conflicts with other items
*/
//
// Create Metabox
//
# Add in ~/.bashrc or ~/.bash_profile
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
RED="\[\033[01;31m\]"
YELLOW="\[\033[01;33m\]"
GREEN="\[\033[01;32m\]"
BLUE="\[\033[01;34m\]"
NO_COLOR="\[\033[00m\]"