Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a "view details" button to the bottom of the WP Dispensary shortcode output
* 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