Skip to content

Instantly share code, notes, and snippets.

Avatar

trainingspark

View GitHub Profile
View Buddyboss overbraning override for LearnDash Focus Theme
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 Oct 15, 2021
Buddyboss overbranding override
View 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();
}
@trainingspark
trainingspark / anonymise-users.php
Last active Jul 20, 2021
A simple script to quickly anonymise the users of a WordPress website.
View anonymise-users.php
<?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