This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
// License: GPLv2+ | |
var el = wp.element.createElement, | |
registerBlockType = wp.blocks.registerBlockType, | |
ServerSideRender = wp.components.ServerSideRender, | |
TextControl = wp.components.TextControl, | |
InspectorControls = wp.editor.InspectorControls; | |
/* | |
* Here's where we register the block in JavaScript. |
#!/bin/bash | |
$( dirname $0 )/vvv-ssh $( basename $0 ) $@ |
<?php | |
function gravatar_img_src() { | |
$emails = array(); | |
# Gravatar is all about dem jpg's | |
$file_extension = '.jpg'; | |
# add a size via query here, eg 250, 400 | |
$file_size = '?size=250px'; |
<?php | |
function iti_get_svg_markup( $svg_id = 0 ) { | |
// get the file name of the svg | |
$svg_id = absint( $svg_id ); | |
$svg_file = get_post_meta( $svg_id, '_wp_attached_file', true ); | |
// locate the file on disk | |
$upload_dir = wp_upload_dir(); | |
$upload_basedir = trailingslashit( $upload_dir['basedir'] ); |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.
I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.
This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.
If you experience any difficulties or have any feedback, leave a comment. 🐬
Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.
$content = get_post( 1558 ); | |
$content = $content->post_content; | |
$content_array = explode( "\n", $content ); | |
echo 'before<pre>'; | |
print_r($content_array); | |
echo '</pre>'; | |
foreach ( $content_array as $k => $v ) { |
jQuery(document).ready(function($){ | |
$('body').on( 'click', '.some-button', function(){ | |
$.ajax( ajax_endpoint_data.api_url, { | |
type : 'POST', | |
dataType : 'json', | |
data : { | |
action: 'ajax_action', | |
some_data: 'some_value' | |
} |