TownHub - Listing & Directory WP Theme

⌘K
  1. Home
  2. TownHub – Listing &...
  3. User Questions
  4. Add website link to listing card

Add website link to listing card

https://support.cththemes.com/?topic=suggestion-add-website-icon-to-listing-card#post-45523

How to verify the list automatically for the author’s role after the author adds it?

Add the code bellow to child theme’s functions.php

add_action( ‘townhub_addons_insert_listing_after’, function($listing_id, $is_editing_listing){
if( $is_editing_listing == false ){
update_post_meta( $listing_id, ESB_META_PREFIX.’verified’, ‘1’ );
}
}, 10, 2 );

How can we help?