Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add a "view details" button to the bottom of the WP Dispensary shortcode output
<?php
/**
* WP Dispensary - view details button
*/
add_action( 'wpd_shortcode_inside_bottom', 'acme_viewdetails' );
function acme_viewdetails() { ?>
<p><a href="<?php the_permalink(); ?>" class="acme-button">View Details</a></p>
<?php } // function acme_viewdetails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.