TownHub - Listing & Directory WP Theme

  1. Home
  2. Docs
  3. TownHub – Listing & Directory WP Theme
  4. User Questions
  5. 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 );

Was this article helpful to you? Yes No