This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* On-the-fly CSS Compression | |
* Copyright (c) 2009 and onwards, Manas Tungare. | |
* Creative Commons Attribution, Share-Alike. | |
* | |
* In order to minimize the number and size of HTTP requests for CSS content, | |
* this script combines multiple CSS files into a single file and compresses | |
* it on-the-fly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Modify Measurements | |
*/ | |
add_filter( 'wpsight_measurements', 'custom_measurements' ); | |
function custom_measurements ( $measurements ) { | |
$measurements = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Show advanced search fields by default | |
*/ | |
add_filter( 'wpsight_get_advanced_search_fields', 'custom_get_advanced_search_fields', 11 ); | |
function custom_get_advanced_search_fields( $fields ) { | |
$fields_advanced['min']['advanced'] = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Re-order fields in search form | |
*/ | |
add_filter( 'wpsight_get_search_fields', 'custom_get_search_fields' ); | |
function custom_get_search_fields( $fields ) { | |
$fields['offer']['priority'] = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove Features from Search Form | |
*/ | |
add_filter( 'wpsight_get_advanced_search_fields', 'custom_get_advanced_search_fields', 10 ); | |
function custom_get_advanced_search_fields( $fields ) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change Archive Title | |
*/ | |
add_filter( 'wpsight_get_archive_title', 'custom_get_archive_title', 100 ); | |
function custom_get_archive_title() { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change Labels of Listing Post Type | |
*/ | |
add_filter( 'wpsight_post_type_labels_listing', 'custom_post_type_labels_listing' ); | |
function custom_post_type_labels_listing( $labels ) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add up to 20 bedrooms/bathrooms to listing details | |
*/ | |
add_filter( 'wpsight_details', 'custom_details' ); | |
function custom_details( $details ) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom Listing Category Taxonomy Slug | |
*/ | |
add_filter( 'wpsight_rewrite_categories_slug', 'custom_rewrite_categories_slug', 11 ); | |
function custom_rewrite_categories_slug( $slug ) { | |
return 'listing-category'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom Listing Feature Taxonomy Slug | |
*/ | |
add_filter( 'wpsight_rewrite_features_slug', 'custom_rewrite_features_slug', 11 ); | |
function custom_rewrite_features_slug( $slug ) { | |
return 'feature'; | |
} |