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 | |
// Apply product categories to newly created or saved tickets that match the The Events Calendar categories of the associated event | |
add_action('event_tickets_after_save_ticket', function ($event_id, $ticket, $raw_data, $classname) { | |
if (empty($ticket) || !isset($ticket->ID)) { | |
return; | |
} | |
// Apply the "event-tickets" category to add tickets so that all tickets have at least this category to start | |
wp_add_object_terms($ticket->ID, 'event-tickets', 'product_cat'); |
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
const get = function (name) { | |
return ( | |
`public String get ${name.charAt(0).toUpperCase()}${name.slice(1)}() { | |
\treturn this.${name}; | |
}` | |
); | |
}; |
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
var get = function (name) { | |
return "public String get" + name.charAt(0).toUpperCase() + name.slice(1,name.length) + "() {\n \treturn this." + name + ";" + "\n}" | |
}; |
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
{ | |
"name": "sage", | |
"homepage": "http://roots.io/sage/", | |
"authors": [ | |
"Ben Word <[email protected]>" | |
], | |
"license": "MIT", | |
"private": true, | |
"dependencies": { | |
"modernizr": "~2.8.3", |
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
<!doctype html> | |
<html> | |
<head> | |
<!-- Run in full-screen mode. --> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<!-- Make the status bar black with white text. --> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> |