Used whenever there is room to display a long form date. These are the prefered format whenever possible.
Sunday, January 10, 2010 - 9:30pm
l, F j, Y - g:ia
Sunday, January 10 - 9:30pm
<?php | |
$allowed_html = wp_kses_allowed_html( 'strip' ); | |
// empty array - strips all html | |
/* | |
Array(); | |
*/ |
<?php | |
/* | |
Plugin Name: Test Event Filter | |
Plugin URI: https://squarecandy.net | |
Description: | |
Version: 1.0.0 | |
Author: Square Candy Design | |
Author URI: http://squarecandydesign.com | |
Text Domain: squarecandy | |
*/ |
diff --git a/test-yikes-drag-drop.html b/test-yikes-drag-drop-withACF.html | |
index 90c9158..c3b6358 100644 | |
--- a/test-yikes-drag-drop.html | |
+++ b/test-yikes-drag-drop-withACF.html | |
@@ -34,10 +34,15 @@ img.emoji { | |
padding: 0 !important; | |
} | |
</style> | |
-<link rel='stylesheet' href='http://testwp.localhost/wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5B%5D=,site-icon,l10n,buttons,wp-auth-check&ver=5.0.1' type='text/css' media='all' /> | |
+<link rel='stylesheet' href='http://testwp.localhost/wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5B%5D=,site-icon,l10n,buttons,wp-auth-check,wp-color-picker&ver=5.0.1' type='text/css' media='all' /> |
<?php | |
/** | |
* Custom Walker to extract current sister-sub-menu | |
*/ | |
class Custom_Walker_Nav_Sister_Menu extends Walker_Nav_Menu { | |
var $found_parents = array(); | |
function start_el(&$output, $item, $depth, $args) { |
<?php | |
define('SITE_EMAIL', '[email protected]'); | |
define('SITE_NAME', 'My Project'); | |
function send_password_reset($email, $name, $resetlink) { | |
require_once( 'swiftmailer/swift_required.php' ); | |
$subject = 'Resetting your password for ' . SITE_NAME; |
<?php | |
function url_exists( $url ) { | |
$headers = get_headers($url); | |
return stripos( $headers[0], "200 OK" ) ? true : false; | |
} | |
function get_youtube_id( $url ) { | |
$youtubeid = explode('v=', $url); | |
$youtubeid = explode('&', $youtubeid[1]); |
// inspired by https://gist.github.com/jshawl/6225945 | |
// Thanks @jshawl! | |
// now using grunt-sass to avoid Ruby dependency | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { // sass tasks | |
dist: { |
<?php | |
// This adds a hard coded Amazon affiliate tag to all amazon links in the_content | |
// Code adapted from the abandoned "Amazon Affiliate Tag" plugin | |
// https://wordpress.org/plugins/amazify/ by Maxime Bridon https://bridon.fr/ | |
function add_amazon_tag( $content ) { | |
// the affiliate tag for Peter Bregman | |
$affiliate_tag = 'yourtaghere-123'; | |
// regex to find any link |
[ | |
{ | |
"key": "group_5aa17612b7168", | |
"title": "Page Fields with Gutenberg", | |
"fields": [ | |
{ | |
"key": "field_5aa1807a67935", | |
"label": "Message", | |
"name": "", | |
"type": "message", |