Skip to content

Instantly share code, notes, and snippets.

View trainingspark's full-sized avatar

trainingspark

View GitHub Profile
@trainingspark
trainingspark / anonymise-users.php
Last active December 22, 2023 06:22
A simple script to quickly anonymise the users of a WordPress website.
<?php
/*
A simple script to quickly anonymise the users of a WordPress website.
It works by replacing all of your existing users with new randomly generated user details.
Simply add this file to the root directory of your WordPress installation, then go to <<your website address/>>/anonymise-users.php
function buddyboss_is_learndash_brand_logo()
{
global $post;
if (class_exists('B2BDash_Public')) {
$b2bdash = new B2BDash_Public(1, 1);
if (!empty($b2bdash->b2bdash_custom_logo())) {
@trainingspark
trainingspark / Buddyboss overbranding override
Last active October 15, 2021 16:06
Buddyboss overbranding override
if (class_exists('B2BDash_Public')) {
$b2bdash = new B2BDash_Public(1, 1);
if (!empty($b2bdash->b2bdash_custom_logo())) {
$logo_id = $b2bdash->b2bdash_custom_logo();
$logo_dark_id = $b2bdash->b2bdash_custom_logo();
}