This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
register_taxonomy( 'acme_custom_taxonomy', array( 'my_cpt', 'post' ), array( | |
'meta_box_cb' => 'acme_metabox_cb', | |
) ); | |
function acme_metabox_cb( $post, $box ){ | |
// Render the default hierarchical meta box form | |
post_categories_meta_box( $post, $box ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pagination_bar() { | |
global $wp_query; | |
$total_pages = $wp_query->max_num_pages; | |
if ($total_pages > 1){ | |
$current_page = max(1, get_query_var('paged')); | |
echo paginate_links(array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// https://github.com/daverogers/serverpilot-php | |
require_once('serverpilot-php/lib/ServerPilot.php'); | |
$clientid = "cid_XXXXXXXXX"; | |
$apikey = "XXXXXXXXXXXXXX"; | |
$appid = "XXXXXXXXXX"; | |
$priv = trim(file_get_contents('/etc/letsencrypt/live/DOMAINNAME/privkey.pem')); | |
$cert = trim(file_get_contents('/etc/letsencrypt/live/DOMAINNAME/fullchain.pem')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
function(){ | |
document.activeElement.setAttribute('type', 'text'); | |
} | |
)(); | |
// Encoded // javascript:(function()%7Bdocument.activeElement.setAttribute('type'%2C 'text')%7D)() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Crypto JS MD5 library was used. https://code.google.com/p/crypto-js/#MD5 | |
var CryptoJS = require('./md5'); | |
var MD5 = CryptoJS.Crypto.MD5; | |
var input = 'ckczppom'; | |
var adventCoin = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Crypto JS MD5 library was used. https://code.google.com/p/crypto-js/#MD5 | |
var CryptoJS = require('./md5'); | |
var MD5 = CryptoJS.Crypto.MD5; | |
var input = 'ckczppom'; | |
var adventCoin = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# You'll need PHP 5.3+ to run this code as is. http://php.net/manual/en/functions.anonymous.php | |
// This action fires for an ajax event. Change it to whatever hook you need. | |
add_action( 'wp_ajax_todo_invite_friend', function(){ | |
// We're only going to apply the filter when this specific action is triggered | |
add_filter( 'mandrill_payload', function( $payload ){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h2 mc:edit="title"></h2> | |
<p> | |
This message was generated from <a href="http://todo.daronspence.com/">ToDo App</a>. Come by and check out what we're all about :) | |
</p> | |
<div mc:edit="main""></div> |