Skip to content

Instantly share code, notes, and snippets.

@Brain8torm
Brain8torm / WOOF by Category taxonomies
Last active September 2, 2021 23:51
Add WooCommerce tags to plugin WOOF by Category. Use this filter in funtions.php
<?php
function b8_core_wbc_taxonomies() {
return ['product_cat', 'product_tag'];
}
add_filter( 'wbc_product_categories', 'b8_core_wbc_taxonomies' );
@Brain8torm
Brain8torm / install.php
Created July 18, 2020 08:11 — forked from tschoffelen/install.php
A simple PHP script that automatically downloads and unzips the latest version of Wordpress in the current directory (./), so that I don't have to download it and upload it to my server through FTP manually.
<?php
echo '<pre>';
echo '<span style="color:blue">DOWNLOADING...</span>'.PHP_EOL;
// Download file
file_put_contents('wp.zip', file_get_contents('http://wordpress.org/latest.zip'));
$zip = new ZipArchive();
$res = $zip->open('wp.zip');
if ($res === TRUE) {