Skip to content

Instantly share code, notes, and snippets.

@FernandoSalinas33
Created May 3, 2018 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FernandoSalinas33/2a986ae1734145025855b72b121186b1 to your computer and use it in GitHub Desktop.
Save FernandoSalinas33/2a986ae1734145025855b72b121186b1 to your computer and use it in GitHub Desktop.
Add a Button that calls the Listing owner
function custom_listify_single_job_listing_actions_after() {
global $post;
$phone = get_post_meta( $post->ID, '_phone', true );
echo '<a href="tel:' . $phone . '" class="button">My Button</a>';
}
add_filter( 'listify_single_job_listing_actions_after', 'custom_listify_single_job_listing_actions_after' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment