Skip to content

Instantly share code, notes, and snippets.

@leepettijohn
leepettijohn / functions.php
Last active January 11, 2024 23:16
Add Event to The Events Calendar from a Gravity Form
//The following section is an add-on to this tutorial - https://tri.be/gravity-forms-events-calendar-submissions/
//Shout to CreativeSlice.com for their initial work
/* Before Starting:
- Make sure you have these three plugins installed
- Gravity Forms
- The Events Calendar
- Gravity Forms + Custom Post Types
- Once Gravity Forms is installed, create a form with these fields
- Single Line Text (Event Title)
- Paragraph Text (Event Description)
@zogot
zogot / meta-box-post_type.php
Last active December 31, 2015 12:19
Custom Meta Box Skeleton Code.
<?php
// Just replace pronamic with an unique identifier.
// and replace video with a slugname for your function of the box.
add_action( 'add_meta_boxes', 'wp_pronamic_add_meta_boxes' );
add_action( 'save_post', 'wp_pronamic_video_meta_box_save', 10, 2 );
function wp_pronamic_add_meta_boxes() {
add_meta_box( 'pronamic_video_meta_box', __( 'Review Rating', 'wp_vision' ), 'wp_pronamic_video_meta_box_show', 'pronamic', 'normal' );
}
function wp_pronamic_video_meta_box_show( WP_Post $post ) {
@sunilw
sunilw / gist:7098951
Last active December 26, 2015 05:09
working Gruntfile. Includes webserver. Watches for changes in filesystem. Runs compass, and produces sass debugging symbols.
module.exports = function (grunt){
grunt.initConfig({
compass : {
dist : {
options : {
sassDir : "sass",
cssDir : "css",
debugInfo : true
<?php
/*
Plugin Name: Instrument Hooks for WordPress
Description: Instruments Hooks for a Page. Outputs during the Shutdown Hook.
Version: 0.1
Author: Mike Schinkel
Author URI: http://mikeschinkel.com
*/
if (isset($_GET['instrument']) && $_GET['instrument']=='hooks') {
@endolith
endolith / Has weird right-to-left characters.txt
Last active April 30, 2024 12:48
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶