Skip to content

Instantly share code, notes, and snippets.

@JoeHana
Created July 21, 2017 14:20
Show Gist options
  • Save JoeHana/d0a55a550d7b5c0f32b1c1e3275cbd61 to your computer and use it in GitHub Desktop.
Save JoeHana/d0a55a550d7b5c0f32b1c1e3275cbd61 to your computer and use it in GitHub Desktop.
Set specific offer as default in listing price metabox
<?php
/**
* Set specific offer as default in listing price metabox
*/
add_filter( 'wpsight_meta_box_listing_price_fields', 'custom_wpsight_meta_box_listing_price_fields', 10 );
function custom_wpsight_meta_box_listing_price_fields( $fields ) {
$fields['offer']['default'] = 'rent';
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment