This file contains 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 | |
add_shortcode( 'div', 'wp_doin_div_shortcode' ); | |
function wp_doin_div_shortcode($atts, $content = null) { | |
ob_start(); | |
// let's fetch all of the arguments of the shortcode | |
$atts = shortcode_atts( array( | |
'class' => 'wp-doin', | |
'heading' => 'Heading', | |
'subheading' => 'Subheading', |
This file contains 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 | |
add_action( 'wp_head', 'gf_trigger_picker' ); | |
/** | |
* Inject js code into the head, used with ACF | |
* @hook wp_head | |
*/ | |
function gf_trigger_picker() { | |
This file contains 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 | |
add_action( 'gform_pre_submission_1', 'gf_form_pre_submission' ); | |
/** | |
* Presubmission form handler | |
* | |
* @hook gform_pre_submission | |
*/ | |
function gf_form_pre_submission($form) { |
This file contains 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
<form method="post" enctype="multipart/form-data" id="gform_1" action="/beantown/wp/contact-us/"> | |
<div class="gform_body"> | |
<ul id="gform_fields_1" class="gform_fields left_label description_below"><li id="field_1_11" class="gfield gsection"><h2 class="gsection_title">We'd love to hear from you!</h2><div class="gsection_description"><div class="vcard"><span class="fn">Erica Voigt</span> | |
<span>Proprietor</span><a class="email" href="mailto:erica@beantownorganizer.com">erica@beantownorganizer.com</a> | |
<a class="tel" href="tel:+16179369047">617.936.9047</a> | |
</div></div></li><li id="field_1_12" class="gfield"><label class="gfield_label" for="input_1_12">First name</label><div class="ginput_container"><input name="input_12" id="input_1_12" type="text" value="" class="medium" tabindex="1"></div></li><li id="field_1_13" class="gfield"><label class="gfield_label" for="input_1_13">Last name</label><div class="ginput_container"><input name="input_13" id="input_1_13" ty |
This file contains 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
add_action( 'init', 'rg_deregister' ); | |
function rg_deregister() { | |
wp_deregister_script( 'mediaelement' ); | |
wp_register_script( 'mediaelement', get_template_directory_uri() . '/_ui/js/mediaelement-and-player.min.js', array( 'jquery' ) ); | |
wp_register_script( 'mediaelement-featuredection', get_template_directory_uri() . '/_ui/js/me-featuredetection.js', array( 'mediaelement' ) ); | |
wp_enqueue_script( 'mediaelement-featuredection' ); |
This file contains 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
/* global mejs, _wpmejsSettings */ | |
(function($) { | |
// add mime-type aliases to MediaElement plugin support | |
mejs.plugins.silverlight[0].types.push('video/x-ms-wmv'); | |
mejs.plugins.silverlight[0].types.push('audio/x-ms-wma'); | |
$(function() { | |
var currentID, | |
settings = { | |
success: function(media, node, player) { |
This file contains 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
<h1>Sample WordPress Page</h1> | |
<div class="entry-content"> | |
<h2>Heading 2</h2> | |
<p>Lorem ipsum dolor sit amet, <a href="http://www.example.org">consectetuer adipiscing</a> elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud <strong>exerci tation</strong> ullamcorper | |
suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p> | |
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse <em>molestie consequat</em>, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio <abbr title="dignissim qui blandit">dqb</abbr> praesent luptatum zzril | |
delenit augue duis dolore te feugait nulla facilisi.</p> |
This file contains 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
wp user list |
This file contains 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
wp plugin activate --all | |
wp theme activate {name_of_our_theme} |
OlderNewer