Skip to content

Instantly share code, notes, and snippets.

@ptrckvzn
ptrckvzn / custom-search-acf-wordpress.php
Created May 17, 2016 20:51 — 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.
/*
##############################
########### Search ###########
##############################
*/
/**
*
* [list_searcheable_acf list all the custom fields we want to include in our search query]
* @return [array] [list of custom fields]
@ptrckvzn
ptrckvzn / acf-post-type-supports.php
Created October 29, 2017 11:04 — forked from QWp6t/acf-post-type-supports.php
Adds ACF Field Group location rule for Post Type Support.
<?php
/**
* Plugin Name: Field Group Location: Post Type Supports
* Plugin URI: http://qwp6t.me/acf-post-type-supports
* Description: Adds ACF Field Group location rule for Post Type Support. NOTE: You must first declare the supported feature in your theme.
* Version: 1.0.0
* Author: QWp6t
* Author URI: http://qwp6t.me
* License: MIT License
*/
import d3 from 'd3';
// https://gist.github.com/mbostock/1340727
//
// const m = `matrix(1.1, -0.1, 0, 1, 0, -20)`;
// console.log(decomposeMatrix(m).toString());
const d3_transformDegrees = 180 / Math.PI;
export default function(string) {