Hi Macmizer,
Thanks for your reply. I’ve just discussed this matter with our developer and here’s the code you can use. Apply this code to your functions.php file and it will be shown on the “Add Listing” form under price package section. Please make sure the userrole1 & userrole2 capability is set for user. Use a child theme if you want to keep the changes. Well, let us know how it goes.
function geodirectory_before_detail_fields() {
if ( is_admin() ) {
return;
}
if ( current_user_can( 'userrole1' ) ) {
?>
<div class="geodir_form_row clearfix" id="geodir_userrole1_row">
<label>User Role 1</label>
<p></p>
</div>
<?php
}
if ( current_user_can( 'userrole2' ) ) {
?>
<div class="geodir_form_row clearfix" id="geodir_userrole2_row">
<label>User Role 2</label>
<p></p>
</div>
<?php
}
}
add_action( 'geodir_before_detail_fields' , 'geodirectory_before_detail_fields', 3 );