Created
July 21, 2017 14:20
-
-
Save JoeHana/d0a55a550d7b5c0f32b1c1e3275cbd61 to your computer and use it in GitHub Desktop.
Set specific offer as default in listing price metabox
This file contains hidden or 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 | |
/** | |
* 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