Created
May 3, 2018 20:15
-
-
Save FernandoSalinas33/2a986ae1734145025855b72b121186b1 to your computer and use it in GitHub Desktop.
Add a Button that calls the Listing owner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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