Skip to content

Instantly share code, notes, and snippets.

View alanef's full-sized avatar

Alan Fuller alanef

View GitHub Profile
# Matomo
* Matomo Plugin Version: 4.15.2
* Config exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/config/config.ini.php" )
* JS Tracker exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/matomo.js" )
* Plugin directories: Yes ([{"pluginsPathAbsolute":"$abs_path\/wp-content\/plugins\/matomo\/plugins","webrootDirRelativeToMatomo":"..\/"}])
* Tmp directory writable: Yes ($abs_path/wp-content/cache/matomo)
* Matomo Version: 4.15.1
* Matomo Blog idSite: 1
* Matomo Install Version: 4.15.2 (Install date: 2023-10-17 21:32:21)
<?php
/*
* Plugin Name: Custom Filter for Display Eventbrite Events
*
*/
add_filter( 'wfea_strip_eb_inline_styles', '__return_false' );
@alanef
alanef / scratch_54.php
Created July 28, 2023 10:40
Custom Filter to hide events from front end
<?php
/*
* Plugin Name: Quick Event Manager - Hide Events from front end and search
* Plugin Description: Custom filter to hide events from front end and search
*/
add_filter( 'qem_event_register_event_cpt', function ( $args ) {
$args['$publicly_queryable'] = false;
$args['$exclude_from_search'] = true;
return $args;
<?php
/*
* Plugin Name: count
*/
add_shortcode( 'count_wfea_transients', function() {
$trans= get_option('wfea_transients');
return 'trans: ' . count($trans);
} );
@alanef
alanef / DE_adjust_currency_symbol.php
Last active June 19, 2023 13:51
Adjust Currenct Symbol
<?php
/*
* Plugin Name: Adjust Currency for Display Eventbrite
*/
add_filter('wfea_currency_symbols', function ($currency_symbols) {
$currency_symbols['CAD'] = 'CAD$';
return $currency_symbols;
}
);
@alanef
alanef / get_custom_fields.php
Created June 16, 2023 21:23
Get custom field shortcode
<?php
/*
* Plugin Name: Get Custom Field Shortcode
* Description: Display custom fields in your WordPress site
* Version: 1.0
*/
/**
* Get Custom Field Shortcode
*
@alanef
alanef / functions.php
Created June 16, 2023 15:19
Remove an organizer from Display Eventbrite data
<?php
add_filter( 'wfea_api_results', function ( $events ) {
// remove a specific organiser id
$organiser_id = 123456789;
$events = array_filter( $events, function ( $event ) use ( $organiser_id ) {
return $event->organizer->id != $organiser_id;
} );
return $events;
},
@alanef
alanef / de_slider_speed.php
Created April 24, 2023 18:34
Change Slider Speed Filter
<?php
/* Plugin Name: Change Slider Speed
*/
add_filter(
'wfea_layout_slider_slide_speed',
function ( $speed ) {
return 5000; // 5 seconds
},
10,
@alanef
alanef / custom_cal.php
Last active March 28, 2023 19:22
Coston Display Eventbrite Calendar Add ImaCustom Display Eventbrite - alter the events, add images
<?php
/*
* Plugin Name: Display Eventbrite Events - Custom Calendar add image
* Plugin URI: https://fullworksplugins.com/
* Description: Add extra javascript to events so the image is loaded in the calendar
*
*/
add_filter( 'wfea_cal_extra_js', function ( $script, $args ) {
$script =
<?php
/*
* Plugin Name: Set Action Scheduler clear down interval
* Description: Set Action Scheduler clear down interval
* Version: 1.0.0
*/
add_filter('action_scheduler_retention_period', function() {
return 2 * DAY_IN_SECONDS; // two days
});