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
function wpx { | |
export XDEBUG_CONFIG="idekey=WPCLIDEBUG remote_connect_back=1" | |
wp "$@" | |
unset XDEBUG_CONFIG | |
}; |
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
<script> | |
jQuery( document ).ready( function() { | |
/* Form ID #5 */ | |
var formID = 5; | |
var category = 'Email List'; | |
var action = 'Subscribed'; | |
var label = 'New Subscriber'; | |
jQuery( document ).on('click', '.nf-form-' + formID + '-cont input[type=button]', function() { | |
ga('send', 'event', category, action, label ); |
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 | |
/** | |
* This class can be customized to quickly add a review request system. | |
* | |
* It includes: | |
* - Multiple trigger groups which can be ordered by priority. | |
* - Multiple triggers per group. | |
* - Customizable messaging per trigger. | |
* - Link to review page. | |
* - Request reviews on a per user basis rather than per site. |
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
this.collection = new fieldTypeCollection( [ | |
{ | |
id: 'textbox', | |
nicename: 'Textbox', | |
alias: [ 'input' ], | |
parentType: '', | |
settingGroups: new fieldTypeSettingGroupCollection( [ | |
{ | |
name: '', | |
display: true, |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
jQuery('.datepicker').datepicker({ | |
// Show the 'close' and 'today' buttons | |
showButtonPanel: true, | |
closeText: objectL10n.closeText, | |
currentText: objectL10n.currentText, | |
monthNames: objectL10n.monthNames, | |
monthNamesShort: objectL10n.monthNamesShort, | |
dayNames: objectL10n.dayNames, | |
dayNamesShort: objectL10n.dayNamesShort, | |
dayNamesMin: objectL10n.dayNamesMin, |