Skip to content

Instantly share code, notes, and snippets.

@robertdevore
Last active December 4, 2019 20:24
Show Gist options
  • Select an option

  • Save robertdevore/6fd9eded6184f564e01d37796ba3e133 to your computer and use it in GitHub Desktop.

Select an option

Save robertdevore/6fd9eded6184f564e01d37796ba3e133 to your computer and use it in GitHub Desktop.
Add your own content to the Age Verification plugin for WordPress
<?php
/**
* Add content after the Age Verification pop up content
*
* @author Robert DeVore <[email protected]>
* @link https://www.wordpress.org/plugins/dispensary-age-verification/
* @return string
*/
function acme_after_popup_content( $string ) {
// Change the following to anything you'd like to display.
$string = __( 'By clicking YES you agree to our Terms of Service', 'acme-lang' );
return $string;
}
add_filter( 'avwp_after_popup_content', 'acme_after_popup_content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment