Skip to content

Instantly share code, notes, and snippets.

View garretthyder's full-sized avatar
🗞️
Working away

Garrett Hyder garretthyder

🗞️
Working away
View GitHub Profile
@garretthyder
garretthyder / scssphp-compiler.php
Created November 2, 2016 23:02
PHP SCSS Compiler for ACF Options using Leafo's SCSSPHP
<?php
/** PHP SCSS Compiler
* @retrofit - https://github.com/ConnectThink/WP-SCSS
* @uses - http://leafo.github.io/scssphp
**/
if ( ! class_exists( 'scssc' ) ) {
include_once( get_template_directory() . '/vendor/scssphp/scss.inc.php' );
} elseif ( class_exists( 'Wp_Scss' ) ) {
// Add Admin notice to indicate WP-SCSS Plugin should be removed.
function wp_scss_installed_error_notice() {
@garretthyder
garretthyder / functions.php
Last active September 18, 2015 22:22 — forked from daithi-coombes/functions.php
To enable 'price from' and 'price to' search for wordpress [WP Property Plugin](https://usabilitydynamics.com/products/wp-property/forum/topic/price-range-search/)
/**
* Rename these to the form input names you are going to use.
* When you create a new attribute in Properties->Settings->Developer
* the form input name will appear greyed out under the attribute name
*/
define('SPRP_SEARCH_FROM_KEY', 'price_from_per_month');
define('SPRP_SEARCH_TO_KEY', 'price_to_per_month');
function parse_search(){