Skip to content

Instantly share code, notes, and snippets.

Stephen Cronin Stephen-Cronin

Block or report user

Report or block Stephen-Cronin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View plugin.php
<?php
/**
* Plugin Name: YOUR PLUGIN NAME
*/
include( dirname( __FILE__ ) . '/lib/requirements-check.php' );
$your_plugin_requirements_check = new YOUR_PREFIX_Requirements_Check( array(
'title' => 'YOUR PLUGIN NAME',
'php' => '5.4',
View plugin-stats.php
<?php
/**
* After creating the necessary table, run with `wp eval-file plugin-stats.php`
*/
use WP_CLI\Utils;
global $wpdb;
$original_request_url = 'https://wordpress.org/plugins/wp-json/plugins/v1/query-plugins?s=&posts_per_page=100';
@maddisondesigns
maddisondesigns / cookie-policy.md
Last active Sep 6, 2019
eCommerce Terms & Conditions and Privacy Templates
View cookie-policy.md
@danielbachhuber
danielbachhuber / gist:8af274e2b7f21c8c3bb6
Created Jul 3, 2014
Post-style permalinks for your custom post types
View gist:8af274e2b7f21c8c3bb6
<?php
/**
* Post-style permalinks for your custom post types
* e.g. %year%/%monthnum%/%day%/%postname%
*/
function dbx_get_post_types() {
return array(
// replace with your custom post types
'my-custom-post-type'
);
You can’t perform that action at this time.