Created
September 2, 2016 11:05
-
-
Save propertyhive/68949f1f62600a6257792ef7a9485881 to your computer and use it in GitHub Desktop.
Add lettings fees textarea to property record
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
// Add lettings fees box to property | |
add_action( 'propertyhive_property_residential_lettings_details_fields', 'add_lettings_fees_box_to_property' ); | |
function add_lettings_fees_box_to_property() | |
{ | |
// Available Date | |
propertyhive_wp_textarea_input( array( | |
'id' => '_lettings_fees', | |
'label' => __( 'Lettings Fees', 'propertyhive' ), | |
'desc_tip' => false | |
) ); | |
} | |
// Save lettings fees entered on property | |
add_action( 'propertyhive_save_property_residential_lettings_details', 'save_property_lettings_fees' ); | |
function save_property_lettings_fees($post_id) | |
{ | |
update_post_meta( $post_id, '_lettings_fees', $_POST['_lettings_fees'] ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment