Skip to content

Instantly share code, notes, and snippets.

@cklosowski
cklosowski / edd-sl-custom-local-domains.php
Created January 25, 2018 19:55
Add TLDs and Subdomains to Software Licensing is_local_url checks.
<?php
// Example of adding a TLD (.org in this example) to the is_local_url check.
function ck_add_url_tlds( $tlds_to_check ) {
$tlds_to_check[] = '.org';
return $tlds_to_check;
}
add_filter( 'edd_sl_url_tlds', 'ck_add_url_tlds', 10, 1 );
@jamiemitchell
jamiemitchell / entry-grid-shortcode.php
Created November 5, 2017 23:16
Entry Grid Shortcode for Genesis
<?php
/**
*
* Add Entry Grid Shortcode
*
* @since 2.0.0
*
*/
add_shortcode( 'entry-grid', 'basetheme_entry_grid_shortcode' );
@fernandiez
fernandiez / functions.php
Last active March 11, 2019 12:25
Create menu section under Tools in WordPress admin dashboard and Editor role redirect
<?php
// Create menu section under Tools in WordPress admin
add_action( 'admin_menu', 'docs_admin_menu' );
// New section under Tools
function docs_admin_menu() {
add_management_page( 'Docs', 'Docs', 'manage_categories', 'docs', 'content_docs_admin_menu' );
}
@maugelves
maugelves / email-con-preguntas-para-presupuesto-web.txt
Last active March 31, 2023 22:39
Correo electrónico con preguntas básicas para la elaboración del presupuesto de un proyecto web.
Hola <nombre del cliente>:
Ante todo muchas gracias por ponerte en contacto y por confiar en nuestros servicios para el desarrollo de tu web.
Necesitaría que por favor respondas las siguientes preguntas para realizar un presupuesto acorde a las necesidades de tu proyecto.
====================
Sobre su negocio:
- ¿A qué se dedica tu empresa/proyecto/emprendimiento?
@planetahuevo
planetahuevo / hello-bar-single.php
Created September 18, 2017 22:25 — forked from neilgee/hello-bar-single.php
Genesis HelloBar Preheader Full Width
<?
//Don't paste in the above php tag
// Enqueue scripts and styles
add_action( 'wp_enqueue_scripts', 'hello_bar_scripts_styles' );
function hello_bar_scripts_styles() {
wp_enqueue_script( 'hello-bar', esc_url( get_stylesheet_directory_uri() ) . '/js/hello-bar.js', array( 'jquery' ), '1.0.0' );
}
@MikhailRoot
MikhailRoot / MyPluginUpdater.php
Created August 9, 2017 10:41
Example of how to use plugin-update-checker to check for updates multiple plugins and enable automatic background updates if needed.
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
require_once __DIR__. '/plugin-update-checker-4.2/plugin-update-checker.php';
class MyPluginUpdater {
@yi-jiayu
yi-jiayu / index.js
Created July 5, 2017 03:11
Using Google Cloud Functions to display data from Google Analytics as a README badge
"use strict";
const google = require('googleapis');
const key = require('./credentials.json');
const viewId = 'YOUR_VIEW_ID';
function getUsers(key, viewId) {
// https://github.com/google/google-api-nodejs-client#using-jwt-service-tokens
const jwtClient = new google.auth.JWT(
@PCianes
PCianes / admin_notice.php
Last active January 11, 2019 08:22
Admin notices (avisos panel administración)
<?php
/**
* Some example snippets for the control of notices in WordPress admin panel
*
* @package PCianes\AdminUtilities
* @since 1.0.0
* @author PCianes
* @license GNU General Public License 2.0+
*/
namespace PCianes\AdminUtilities;
@lukecav
lukecav / DNS Prefetch domains
Last active October 9, 2024 00:30
WP Rocket - Advanced Options Prefetch DNS requests examples
//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
@justjanne
justjanne / Price Breakdown.md
Last active April 5, 2025 08:10 — forked from kylemanna/price.txt
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Permalink: git.io/vps

$5/mo

Provider Type RAM Cores Storage Transfer Network Price