Skip to content

Instantly share code, notes, and snippets.

@Apina
Apina / custom_functions.php
Created February 19, 2015 08:51
Removes price modifiers (rather than taxes) from the price, so it shows the base price.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
// display the base price of the ticket in the ticket selector without Price Modifiers.
add_filter( 'FHEE__ticket_selector_chart_template__ticket_price', 'change_ee_ticket_selector_base_price_display', 10, 2 );
function change_ee_ticket_selector_base_price_display( $ticket_price, $ticket ) {
$x = $ticket->base_price();
@Apina
Apina / gist:655e3fa46e049a0a8dfd
Created May 13, 2015 15:08
650+ English Stop Words (stopwords) in A-Z order, prepped for an array (PHP)
'\'tis',
'\'twas',
'a',
'a\'s',
'able',
'about',
'above',
'according',
'accordingly',
'across',
<?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';