Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
<button class="button" id="get_posts">Get Posts</button> | |
<ul id="statuses"> | |
</ul> | |
<script type="text/javascript"> | |
/* Requires JSON API plugin installed on remote site http://wordpress.org/plugins/json-api/ */ | |
(function(window, document, $, undefined){ |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
<?php | |
defined( 'ABSPATH' ) OR exit; | |
/* | |
Plugin Name: WP Cron Jobs List | |
Plugin URI: https://github.com/franz-josef-kaiser | |
Description: List WordPress internal cron jobs (array data) after the footer. | |
Author: Franz Josef Kaiser | |
Author URI: https://github.com/franz-josef-kaiser | |
Version: 0.3.1 | |
License: MIT |
<?php | |
/* | |
Plugin Name: Easy Digital Downloads - Variable Pricing License Activation Limits | |
Plugin URL: http://easydigitaldownloads.com/extension/ | |
Description: Limit the number of license activations permitted based on variable prices | |
Version: 1.0 | |
Author: Pippin Williamson | |
Author URI: http://pippinsplugins.com | |
Contributors: mordauk | |
*/ |
<?php | |
add_action ( 'pre_user_query', 'rkv_user_search' ); | |
function rkv_user_search($wp_user_query) { | |
if(false === strpos($wp_user_query->query_where, '@') && !empty($_GET["s"])) { | |
global $wpdb; | |
$uids = array(); |
<?php | |
function remove_signup_option(){ | |
//Predefine what kind of registration is happening. wp-signup.php won't show the option if one is declared | |
global $active_signup; | |
$active_signup='blog'; | |
} | |
add_action('signup_hidden_fields','remove_signup_option'); |
#!/bin/bash | |
PHP_VERSION="5.5.0" | |
yum -y install \ | |
curl-devel.x86_64 \ | |
libmcrypt-devel.x86_64 \ | |
libxml2-devel.x86_64 \ | |
libtool-ltdl-devel.x86_64 \ | |
pcre-devel.x86_64 \ |
<?php | |
/** | |
* Register plugin icons. | |
* | |
* WordPress 4.9 introduced icons in the list table on the Manage Plugins | |
* screen. The icons are pulled from the W.org update API. If an icon isn't | |
* available, a generic plugin Dashicon is shown instead. | |
* | |
* @param array $value Plugin update data. | |
* @return array |
#!/bin/bash | |
# Go to root of the repository | |
echo 'Checking PHPCS'; | |
width=$(tput cols); | |
if [ `git rev-parse --verify HEAD` ]; then | |
against='HEAD' | |
else |
FROM debian:stretch | |
ENV DEBIAN_FRONTEND noninteractive | |
# install NGINX | |
RUN apt-get update && \ | |
apt-get install -y nginx --no-install-recommends && \ | |
rm -rf /var/lib/apt/lists/* | |