Skip to content

Instantly share code, notes, and snippets.

@fiskhandlarn
fiskhandlarn / classic-editor.php
Last active April 8, 2019 11:15 — forked from toshotosho/gist:109ec080dcffbb711be4d0f0db99d5f5
Dequeue Gutenberg block library (with support for mu-plugins)
<?php
declare(strict_types=1);
if (!defined('ABSPATH')) {
exit();
}
add_action('wp_enqueue_scripts', function () {
// bail if classic editor setting is set to block or no-replace
@fiskhandlarn
fiskhandlarn / custom-search-acf-wordpress.php
Last active April 17, 2024 06:52 — forked from jserrao/custom-search-acf-wordpress.php
PHP - Wordpress - Search - wordpress custom search function that encompasses ACF/advanced custom fields and taxonomies and split expression before request. I updated this original script with better documentation and XSS / SQL injection support.
<?php
/*
##############################
########### Search ###########
##############################
Included are steps to help make this script easier for other to follow
All you have to do is add custom ACF post types into Step 1 and custom taxonomies into Step 10
I also updated this work to include XSS and SQL injection projection
[list_searcheable_acf list all the custom fields we want to include in our search query]