How to add new contract type to Realia
- Go to wp-content/plugins/realia/realia.php
- Defines new constastant after "define( 'REALIA_CONTRACT_RENT', 'RENT' );" line 56
- I choose to add a vacancy rent option : "define( 'REALIA_CONTRACT_VACANCY', 'VACANCY' );"
- Then go to wp-content/plugins/realia/include/post-types/class-realia-post-type-property.php
- In line 81 add your constant with string for the front-end.
- Finally for the display go to wp-content/plugins/realia/templates/widget/filter-fields/contract.php
- Add your constant like REALIA_CONTRACT_RENT
- Done.
ليست هناك تعليقات:
إرسال تعليق