Cutout a triangle from the border of an element and show the background through.
A Pen by Josh Eaton on CodePen.
| #!/bin/bash | |
| # args | |
| MSG=${1-'deploy from git'} | |
| BRANCH=${2-'trunk'} | |
| # paths | |
| SRC_DIR=$(git rev-parse --show-toplevel) | |
| DIR_NAME=$(basename $SRC_DIR) | |
| DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH |
| <?php | |
| /* Register custom post types on the 'init' hook. */ | |
| add_action( 'init', 'my_register_post_types' ); | |
| /** | |
| * Registers post types needed by the plugin. | |
| * | |
| * @since 0.1.0 | |
| * @access public |
Cutout a triangle from the border of an element and show the background through.
A Pen by Josh Eaton on CodePen.
| <?php | |
| /** | |
| * Small plugin to demonstrate how to place the bbPress Report Content links wherever you want | |
| * | |
| * @author Josh Eaton <http://www.josheaton.org/> | |
| */ | |
| if ( ! function_exists( 'shmoo_bbp_the_topic_report_link' ) ) { | |
| /** | |
| * Output a topic report link |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| # Implements a recursive null object pattern. | |
| # | |
| # Implemented as a trait so any object can make it's properties use | |
| # the null pattern without resorting to inheritance. | |
| # | |
| # The goal is so you can pull data off a partially populated object | |
| # without excessive existance checks. | |
| trait NullPattern { |
| <?php | |
| /** | |
| * Disable heartbeat API on all admin pages except post.php and post-new.php | |
| * | |
| * Plugin Name: Disable Heartbeat API | |
| * Plugin URI: http://www.josheaton.org/ | |
| * Description: Disables the heartbeat API on all admin pages except post.php and post-new.php | |
| * Version: 0.1 | |
| * Author: Josh Eaton | |
| * Author URI: http://www.josheaton.org/ |
| <?php | |
| // ...<snip>... | |
| <span class="milestone"><# wp.hooks.doAction('milestonerevs.metadata', data) #></span> | |
| // ...<snip>... | |
| add_action( 'admin_footer-revision.php', 'wpse151630_test' ); | |
| function wpse151630_test() { | |
| ?> | |
| <script> |
| man -t [command] | open -f -a Preview |