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
<script> | |
( function( $ ) { | |
$( '#pehub_post_quote_link' ).autocomplete( { | |
minLength: 3, | |
source: function( request, response ) { | |
var posts = []; | |
$.ajax( { |
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 | |
/** | |
* Migrate posts to scoops | |
* | |
* @subcommand migrate-scoops | |
*/ | |
public function migrate_scoops( $args, $assoc_args ) { | |
global $wpdb; | |
$scoops_term = get_term_by( 'slug', 'sccops-analysis', 'pehub_section' ); |
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
module.exports = function ( grunt ) { | |
grunt.initConfig( { | |
pkg: grunt.file.readJSON( 'package.json' ), | |
concat: { | |
js: { | |
src: [ | |
'js/config.js', | |
'js/utils.js', | |
'js/app.js', | |
'js/parent-models/*', |
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 | |
/** | |
* Class Vistage_Chair_API sets up routes and endpoints of CPT API | |
*/ | |
class Vistage_Chair_API extends WP_JSON_CustomPostType { | |
protected $base = '/chair-profiles'; | |
protected $type = 'vistage_chair'; |
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 | |
class NYO_General_Settings { | |
private static $_instance; | |
private $option_defaults = array( | |
'trending_title' => array( | |
'sanitizer' => 'sanitize_text_field', | |
'default' => 'Trending:', | |
) |
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 | |
function tl_filter_term_link( $termlink, $term, $taxonomy ) { | |
if ( 'taxonomy' != $taxonomy ) | |
return $termlink; | |
$termlink = str_ireplace( 'taxonomy/', '', $termlink ); | |
return $termlink; | |
} |
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 | |
class ESTestCore extends PHPUnit_Framework_TestCase { | |
public function setUp() { | |
\WP_Mock::setUp(); | |
} | |
public function tearDown() { | |
\WP_Mock::tearDown(); | |
} |
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 server = 'observer.vipstage.10uplabs.com'; | |
var page = '/wp-admin/admin-ajax.php?action=wp-browser-search'; | |
var reply = ""; | |
conn = new Socket; | |
conn.timeout=30; | |
conn.encoding = 'UTF-8'; | |
if( conn.open( server + ':' + WPBrowserSearchPort ) ) { | |
conn.write( 'GET ' + page + ' HTTP/1.0' + "\n\n" ); | |
reply = conn.read(999999); |
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
PMC_Deadline_Checklist = function () { | |
//cache the reference to our class | |
var self = this; | |
//Cache the checklist container | |
this.$checklist_container = $( '#pmc-deadline-post-checklist-meta-box' ); | |
//Cache the HTML DOM Checklist Items we'll be updating | |
this.$vertical_taxonomy_todo_item = this.$checklist_container.find( 'li.vertical' ); | |
this.$category_taxonomy_todo_item = this.$checklist_container.find( 'li.category' ); |
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 | |
class EP_Cron { | |
public function __construct() { | |
add_action( 'ep_sync', array( $this, 'sync' ) ); | |
add_action( 'init', array( $this, 'schedule_events' ) ); | |
} | |
/** |