Skip to content

Instantly share code, notes, and snippets.

@Achterstraat
Achterstraat / Vimexx.php
Last active June 20, 2024 18:43
Heb je het óók he-le-maal gehad met Vimexx? Gebruik dan dit script om makkelijk én snel de overstap te realiseren, alle data binnen enkele seconden over naar je nieuwe hostingpartij!
<?php
/*
First, create API Projects at https://www.vimexx.nl/api
Second, replace all vars between [] with credentials from previous step!
Third, see below;
$vimexx = (new \Vimexx([account], 'wefact'));
var_export($vimexx->post('/domains'));
var_dump($vimexx->client('whmcs')->post('/domain/dns', ['sld' => 'achterstraat', 'tld' => 'com']));
var_export($vimexx->client('wefact')->post('/domains'));
*/
@fredroo
fredroo / sanitize-filename.php
Created March 27, 2019 21:45
Add Sanitize Filename to Plugin: Media File Renamer (Auto Rename) By Jordy Meow
<?php
/* https://wordpress.org/plugins/media-file-renamer/ */
add_filter( 'mfrh_new_filename', 'my_filter_filename', 10, 3 );
function my_filter_filename( $filename, $old, $post ) {
$sanitized_filename = remove_accents( $filename ); // Convert to ASCII