Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JarrydLong/a2236e78b1c5e78c5bbdc8ac9303a7d5 to your computer and use it in GitHub Desktop.
Save JarrydLong/a2236e78b1c5e78c5bbdc8ac9303a7d5 to your computer and use it in GitHub Desktop.
Filter the teaser message text for a not logged in site visitor
<?php //do not copy
function my_pmpro_not_logged_in_text_filter($text){
$text = '<h4>Account Information</h4><p>Enter account details or, if you’re already a user, <a href="/login?redirect_to=' . urlencode($_SERVER['REQUEST_URI']) . '">login here.</a></p>';
return $text;
}
add_filter("pmpro_not_logged_in_text_filter", "my_pmpro_not_logged_in_text_filter", 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment